/* Case Studies — public marketing pages (RTL Hebrew) */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700;800&family=Caveat:wght@500;600;700&display=swap');

:root {
  --cs-ink: #1a1f2e;
  --cs-muted: #5c6578;
  --cs-line: #e6e9f0;
  --cs-bg: #f7f8fb;
  --cs-surface: #ffffff;
  --cs-accent: #2f6fed;
  --cs-accent-soft: rgba(47, 111, 237, 0.1);
  --cs-warm: #c4a574;
  --cs-saraf: #8b6914;
  --cs-py: #1e4fd6;
  --cs-dream: #c9a227;
  --cs-dream-dark: #0a0a0a;
  --cs-radius: 16px;
  --cs-shadow: 0 12px 40px rgba(26, 31, 46, 0.08);
}

.cs-page {
  font-family: 'Assistant', 'Heebo', sans-serif;
  color: var(--cs-ink);
  background: var(--cs-bg);
  direction: rtl;
  text-align: right;
}

.cs-page * { box-sizing: border-box; }

.cs-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.cs-hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, var(--cs-accent-soft), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--cs-bg) 100%);
}

.cs-hero[data-theme="saraf"] {
  background:
    radial-gradient(ellipse 70% 50% at 0% 10%, rgba(196, 165, 116, 0.22), transparent 50%),
    linear-gradient(180deg, #fbf8f2 0%, var(--cs-bg) 100%);
}

.cs-hero[data-theme="py"] {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(30, 79, 214, 0.12), transparent 55%),
    linear-gradient(180deg, #f3f6ff 0%, var(--cs-bg) 100%);
}

/* Dream uses same light hero as P.Y */
.cs-hero[data-theme="dream"] {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(30, 79, 214, 0.12), transparent 55%),
    linear-gradient(180deg, #f3f6ff 0%, var(--cs-bg) 100%);
  color: var(--cs-ink);
}

.cs-hero-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.75rem;
}

.cs-hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.cs-hero--centered .cs-hero-copy--centered {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.cs-hero--centered .cs-lead {
  margin-inline: auto;
}

.cs-hero--centered {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(18rem, 42vh, 26rem);
  padding: 5rem 0 4rem;
}

.cs-hero-float {
  animation: csHeroFloat 5.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes csHeroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .cs-hero-float {
    animation: none;
  }
}

.cs-hero-brand {
  flex: 0 0 auto;
  width: min(140px, 38vw);
  margin: 0;
  /* mobile: top of hero, visual left */
  order: -1;
  align-self: flex-end;
}

@media (min-width: 768px) {
  .cs-hero-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5rem;
  }

  /*
   * RTL row: first DOM child (copy) starts on the right,
   * second (brand) lands on the visual left — under התחברות / הרשמה.
   */
  .cs-hero-brand {
    order: 0;
    width: 168px;
    margin-top: 0.15rem;
    align-self: flex-start;
  }
}

.cs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cs-accent);
  margin-bottom: 1rem;
}

.cs-kicker::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: currentColor;
}

.cs-h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.cs-page[data-study="dream-laser"] .cs-h1 {
  max-width: 22ch;
}

.cs-page[data-study="py-import-marketing"] .cs-h1,
.cs-page[data-study="saraf-shorashim"] .cs-h1 {
  max-width: 22ch;
}

.cs-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--cs-muted);
  max-width: 62ch;
  margin: 0 0 1.75rem;
}

.cs-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cs-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--cs-line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cs-ink);
}

.cs-hero-brand img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: var(--cs-shadow);
  background: #0a0a0a;
}

.cs-hero-brand--light img {
  background: #fff;
  padding: 0.65rem;
  object-fit: contain;
}

.cs-section {
  padding: 3.25rem 0;
}

.cs-section + .cs-section {
  border-top: 1px solid var(--cs-line);
}

.cs-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cs-accent);
  margin-bottom: 0.65rem;
}

.cs-h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.cs-prose {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--cs-muted);
  max-width: 68ch;
}

.cs-prose p { margin: 0 0 1.15rem; }
.cs-prose p:last-child { margin-bottom: 0; }
.cs-prose strong { color: var(--cs-ink); font-weight: 700; }

.cs-media {
  margin: 2rem 0 0;
}

.cs-media figure {
  margin: 0;
  background: var(--cs-surface);
  border-radius: var(--cs-radius);
  overflow: hidden;
  border: 1px solid var(--cs-line);
  box-shadow: var(--cs-shadow);
}

.cs-media img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-media figcaption {
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  color: var(--cs-muted);
  border-top: 1px solid var(--cs-line);
  background: #fafbfc;
}

.cs-media--narrow {
  max-width: 420px;
}

.cs-media--phone {
  max-width: 280px;
}

.cs-grid-2 {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .cs-grid-2 { grid-template-columns: 1fr 1fr; }
}

.cs-before-after {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.25rem;
}

@media (min-width: 900px) {
  .cs-before-after { grid-template-columns: 1fr auto 1fr; align-items: center; }
}

.cs-ba-arrow {
  display: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cs-accent);
  text-align: center;
}

@media (min-width: 900px) {
  .cs-ba-arrow { display: block; }
}

.cs-ba-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  color: var(--cs-muted);
}

.cs-media--flush { margin-top: 0; }

/* Visual-first sections */
.cs-section--visual {
  padding: 3.75rem 0;
}

.cs-lead-short {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.75;
  color: var(--cs-muted);
  max-width: 42ch;
  margin: 0 0 2rem;
}

/* Client quote — slick white badge, single line */
.cs-quote-badge {
  margin: 1rem 0 0;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 31, 46, 0.08);
  background: #fff;
  box-shadow: 0 6px 20px rgba(26, 31, 46, 0.06);
}

.cs-quote-badge blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: clamp(0.82rem, 1.5vw, 0.98rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--cs-ink);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .cs-quote-badge {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cs-quote-badge::-webkit-scrollbar {
    display: none;
  }
}

.cs-stake-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 2rem;
}

@media (min-width: 640px) {
  .cs-stake-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.cs-stake {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1rem;
  background: var(--cs-surface);
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(26, 31, 46, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cs-stake:hover {
  transform: translateY(-3px);
  box-shadow: var(--cs-shadow);
}

.cs-stake-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cs-accent);
  flex-shrink: 0;
}

.cs-insight-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .cs-insight-row { grid-template-columns: 1fr 1fr; }
}

.cs-insight {
  padding: 1.35rem 1.4rem;
  border-radius: 16px;
  border: 1px solid var(--cs-line);
  background: var(--cs-surface);
  min-height: 110px;
}

.cs-insight-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--cs-accent);
  margin-bottom: 0.45rem;
}

.cs-insight p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--cs-ink);
}

.cs-insight--symptom {
  background: linear-gradient(160deg, #fff8f3, #fff);
  border-color: #f0d9c4;
}

.cs-insight--core {
  background: linear-gradient(160deg, #eef4ff, #fff);
  border-color: #c9d8f7;
}

/* Before collage: excel + tilted forgot message (no orange frame) */
.cs-before-stage {
  position: relative;
}

.cs-before-collage {
  position: relative;
  padding: 1.25rem 0.75rem 0.5rem 1.5rem;
}

.cs-before-excel {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--cs-radius);
  border: 1px solid var(--cs-line);
  box-shadow: var(--cs-shadow);
  background: #fff;
}

.cs-before-msg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: min(58%, 260px);
  max-width: 280px;
  height: auto;
  transform: rotate(-7deg);
  transform-origin: center center;
  border-radius: 10px;
  background: #fff;
  border: none;
  box-shadow:
    0 14px 36px rgba(26, 31, 46, 0.18),
    0 2px 8px rgba(26, 31, 46, 0.08);
  animation: csFloatMsg 4.5s ease-in-out infinite;
}

@media (min-width: 640px) {
  .cs-before-collage {
    padding: 1.75rem 1rem 0.75rem 2rem;
  }

  .cs-before-msg {
    width: min(46%, 300px);
    top: -0.35rem;
    left: -0.35rem;
  }
}

@keyframes csFloatMsg {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-6px); }
}

/* After collage: calendar + floating WhatsApp reminder */
.cs-after-stage {
  position: relative;
  z-index: 0;
}

.cs-after-collage {
  position: relative;
  isolation: isolate;
  padding: 0.5rem 1.5rem 1.25rem 0.75rem;
}

.cs-after-calendar {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.cs-after-wa {
  position: absolute;
  bottom: 0.35rem;
  left: 0;
  z-index: 20;
  width: min(62%, 280px);
  max-width: 300px;
  height: auto;
  transform: rotate(6deg);
  transform-origin: center center;
  border-radius: 14px;
  background: transparent;
  border: none;
  box-shadow:
    0 16px 40px rgba(26, 31, 46, 0.22),
    0 2px 10px rgba(26, 31, 46, 0.1);
  animation: csFloatWa 4.8s ease-in-out infinite;
  pointer-events: none;
}

@media (min-width: 640px) {
  .cs-after-collage {
    padding: 0.75rem 2rem 1.75rem 1rem;
  }

  .cs-after-wa {
    width: min(48%, 320px);
    bottom: -0.15rem;
    left: -0.35rem;
  }
}

@keyframes csFloatWa {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  .cs-before-msg { animation: none; }
  .cs-after-wa { animation: none; }
  .cs-stake { transition: none; }
}

.cs-pain-note {
  display: none;
}

.cs-h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  line-height: 1.35;
  color: var(--cs-ink);
}

.cs-media--bare {
  margin: 2rem 0 0;
}

.cs-media--bare img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.cs-build-shots {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.cs-build-shots .cs-media--bare {
  margin: 0;
}

.cs-build-shots .cs-media--wa {
  max-width: 420px;
  justify-self: start;
}

@media (min-width: 800px) {
  .cs-build-shots {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .cs-build-shots .cs-media--wa {
    grid-column: 1 / -1;
    max-width: 480px;
  }
}

.cs-media--flow {
  margin-top: 2rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--cs-line);
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 31, 46, 0.06);
}

.cs-media--flow img {
  border-radius: 0;
}

/* Discovery: text + flow diagram side by side */
.cs-discovery-split {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.cs-discovery-copy .cs-h2 {
  margin-bottom: 0.85rem;
}

.cs-discovery-copy .cs-prose {
  max-width: none;
}

.cs-discovery-visual {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--cs-line);
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 31, 46, 0.06);
}

.cs-discovery-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-discovery-stack {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem;
}

.cs-discovery-stack .cs-discovery-visual {
  max-width: 100%;
}

.cs-discovery-visual--dash {
  border: none;
  box-shadow: 0 14px 36px rgba(26, 31, 46, 0.1);
  background: var(--cs-bg);
}

.cs-discovery-visual--lottie {
  border: none;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}

.cs-org-lottie {
  display: block;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 700 / 500;
  height: auto;
  margin-inline: auto;
  border: 0;
  background: transparent;
}

.cs-saraf-support-lottie {
  max-width: 480px;
  aspect-ratio: 3 / 2;
}

@media (min-width: 900px) {
  .cs-discovery-split {
    /* RTL: copy first in DOM = right; flow image second = visual left */
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: center;
  }

  .cs-discovery-split:has(.cs-discovery-visual--dash),
  .cs-discovery-split--impl {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

/* Portal: copy right + phone slider left */
.cs-portal-split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.cs-portal-copy .cs-h2 {
  margin-bottom: 0.85rem;
}

.cs-portal-copy .cs-lead-short {
  margin-bottom: 0;
  max-width: 38ch;
}

.cs-portal-gallery {
  margin: 0;
}

.cs-portal-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 280px) auto;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.cs-portal-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 280px;
  justify-self: center;
}

.cs-portal-track {
  position: relative;
  width: 100%;
}

.cs-portal-slide {
  margin: 0;
  width: 100%;
  display: none;
}

.cs-portal-slide.is-active {
  display: block;
  animation: csPortalInRight 0.45s ease;
}

.cs-portal-slide.is-active.is-enter-left {
  animation-name: csPortalInLeft;
}

.cs-portal-slide img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

@keyframes csPortalInRight {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes csPortalInLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}

.cs-portal-nav {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--cs-line);
  background: #fff;
  color: var(--cs-ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cs-portal-nav:hover {
  border-color: var(--cs-accent);
  color: var(--cs-accent);
}

.cs-portal-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.cs-portal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
}

.cs-portal-dot.is-active {
  background: var(--cs-accent);
  width: 20px;
  border-radius: 999px;
}

@media (min-width: 860px) {
  .cs-portal-split {
    /* RTL: copy first = right; gallery second = visual left */
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 2.5rem;
    align-items: center;
  }

  .cs-portal-stage {
    max-width: none;
  }
}

@media (max-width: 859px) {
  .cs-section--portal .cs-portal-copy {
    text-align: center;
    order: 1;
  }

  .cs-section--portal .cs-portal-gallery {
    order: 2;
  }

  .cs-section--portal .cs-portal-copy .cs-h2,
  .cs-section--portal .cs-portal-copy .cs-lead-short {
    margin-inline: auto;
    text-align: center;
  }

  .cs-section--portal .cs-portal-copy .cs-lead-short {
    max-width: 34ch;
  }

  .cs-section--portal .cs-portal-copy .cs-section-label {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-portal-slide.is-active {
    animation: none;
  }
}

.cs-cta {
  margin: 3rem 0 4rem;
  padding: 2.5rem 1.75rem;
  border-radius: calc(var(--cs-radius) + 4px);
  background: linear-gradient(135deg, #1a1f2e 0%, #2a3550 100%);
  color: #fff;
  text-align: center;
}

.cs-cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
}

.cs-cta p {
  margin: 0 auto 1.5rem;
  max-width: 48ch;
  opacity: 0.85;
  line-height: 1.7;
}

.cs-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cs-btn:hover { transform: translateY(-1px); }

.cs-btn-primary {
  background: #fff;
  color: var(--cs-ink);
}

.cs-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.cs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.cs-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cs-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.cs-links a:hover { border-bottom-color: currentColor; }

.cs-index-hero {
  padding: 4rem 0 2.5rem;
  background: linear-gradient(180deg, #fff, var(--cs-bg));
  text-align: center;
}

.cs-index-hero .cs-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cs-index-hero .cs-kicker {
  justify-content: center;
}

.cs-index-hero .cs-kicker::before {
  display: none;
}

.cs-index-hero .cs-h1 {
  max-width: none;
  margin-inline: auto;
  text-align: center;
  white-space: normal;
}

@media (min-width: 720px) {
  .cs-index-hero .cs-h1 {
    white-space: nowrap;
    font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  }
}

.cs-index-hero .cs-lead {
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: 0;
  text-align: center;
}

.cs-cards {
  display: grid;
  gap: 1.25rem;
  padding: 0 0 4rem;
}

@media (min-width: 768px) {
  .cs-cards { grid-template-columns: repeat(3, 1fr); }
}

/* Google reviews — blogs index trust section */
.cs-google-reviews {
  margin: 0 0 4.5rem;
  padding: 2.75rem 0 0;
  border-top: 1px solid var(--cs-line);
}

.cs-google-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.cs-google-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cs-muted);
}

.cs-google-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--cs-ink);
}

.cs-google-stars {
  display: inline-flex;
  gap: 0.15rem;
  font-size: 1.45rem;
  line-height: 1;
  color: #f4b400;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}

.cs-google-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cs-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.cs-google-link:hover {
  border-bottom-color: currentColor;
}

.cs-reviews-carousel {
  margin-top: 0.5rem;
}

.cs-reviews-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -0.25rem;
  padding: 0.25rem;
  direction: ltr;
}

.cs-reviews-viewport::-webkit-scrollbar {
  display: none;
}

.cs-reviews-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.cs-review-card {
  scroll-snap-align: start;
  flex: 0 0 min(320px, calc(100vw - 3rem));
  background: var(--cs-surface);
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 210px;
  box-shadow: 0 8px 24px rgba(26, 31, 46, 0.05);
  direction: rtl;
  text-align: right;
}

@media (min-width: 640px) {
  .cs-review-card {
    flex-basis: min(340px, 46vw);
  }
}

@media (min-width: 960px) {
  .cs-review-card {
    flex-basis: 340px;
  }
}

.cs-review-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: start;
}

.cs-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8eefc;
  color: var(--cs-accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
}

.cs-review-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--cs-ink);
}

.cs-review-meta {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--cs-muted);
}

.cs-review-stars {
  color: #f4b400;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cs-review-text {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--cs-muted);
}

.cs-review-source {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.cs-reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.cs-reviews-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--cs-line);
  background: #fff;
  color: var(--cs-ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.cs-reviews-btn:hover {
  border-color: var(--cs-accent);
  color: var(--cs-accent);
}

.cs-reviews-dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.cs-reviews-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
}

.cs-reviews-dot.is-active {
  background: var(--cs-accent);
  width: 18px;
  border-radius: 999px;
}

.cs-card {
  display: flex;
  flex-direction: column;
  background: var(--cs-surface);
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--cs-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(26, 31, 46, 0.12);
}

.cs-card-visual {
  aspect-ratio: 16 / 10;
  background: #eee;
  overflow: hidden;
}

.cs-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-card-visual--dream {
  background: #0a0a0a;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.cs-card-visual--dream img {
  width: 70%;
  height: auto;
  object-fit: contain;
}

.cs-card-visual--logo {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: #fff;
}

.cs-card-visual--logo img {
  width: 72%;
  max-height: 140px;
  height: auto;
  object-fit: contain;
}

.cs-card-visual--logo.cs-card-visual--dream {
  background: #0a0a0a;
}

.cs-card-body { padding: 1.25rem 1.35rem 1.5rem; flex: 1; }
.cs-card-body h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
}
.cs-card-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--cs-muted);
}

/* ——— Interactive: Saraf department handoff ——— */
.cs-ix {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: var(--cs-surface);
  border: 1px solid var(--cs-line);
  border-radius: calc(var(--cs-radius) + 4px);
  box-shadow: var(--cs-shadow);
}

.cs-ix-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.cs-ix-sub {
  margin: 0 0 1.5rem;
  color: var(--cs-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.cs-handoff-stations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.cs-handoff-btn {
  min-height: 42px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--cs-line);
  background: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cs-ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cs-handoff-btn.is-active {
  background: var(--cs-saraf);
  border-color: var(--cs-saraf);
  color: #fff;
}

.cs-handoff-panel {
  display: none;
  padding: 1.25rem;
  border-radius: 12px;
  background: #fbf8f2;
  border: 1px solid #ead9b8;
  animation: csFade 0.25s ease;
}

.cs-handoff-panel.is-active { display: block; }

.cs-handoff-panel h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.cs-handoff-panel p {
  margin: 0;
  color: var(--cs-muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.cs-handoff-need {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cs-saraf);
}

/* ——— Interactive: P.Y production router ——— */
.cs-router {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .cs-router { grid-template-columns: 1fr 1fr; }
}

.cs-router-lane {
  padding: 1.25rem;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
  background: #f5f7ff;
  text-align: right;
  font-family: inherit;
}

.cs-router-lane[data-route="cold"] { background: #eef6ff; }
.cs-router-lane[data-route="hot"] { background: #fff4ef; }

.cs-router-lane.is-active[data-route="cold"] {
  border-color: var(--cs-py);
  transform: translateY(-2px);
}

.cs-router-lane.is-active[data-route="hot"] {
  border-color: #e07a3a;
  transform: translateY(-2px);
}

.cs-router-lane h4 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.cs-router-lane p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cs-muted);
  line-height: 1.55;
}

.cs-router-status {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  background: #1a1f2e;
  color: #fff;
  min-height: 5.5rem;
}

.cs-router-status strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #9ec0ff;
  font-size: 0.85rem;
}

.cs-router-status p {
  margin: 0;
  line-height: 1.65;
  font-size: 0.98rem;
  opacity: 0.92;
}

/* ——— Interactive: Dream clinic layers ——— */
.cs-layers-track {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.cs-layer-step {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: #111;
  color: #f5f5f5;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.cs-layer-step.is-active {
  background: var(--cs-dream);
  color: #111;
  border-color: var(--cs-dream);
}

.cs-layer-body {
  display: none;
  padding: 1.35rem;
  border-radius: 14px;
  background: linear-gradient(160deg, #141414, #1e1e1e);
  color: #eee;
  border: 1px solid rgba(201, 162, 39, 0.25);
  animation: csFade 0.28s ease;
}

.cs-layer-body.is-active { display: block; }

.cs-layer-body h4 {
  margin: 0 0 0.5rem;
  color: var(--cs-dream);
  font-size: 1.1rem;
}

.cs-layer-body p {
  margin: 0;
  line-height: 1.7;
  font-size: 0.98rem;
  opacity: 0.9;
}

.cs-layer-progress {
  height: 4px;
  background: #2a2a2a;
  border-radius: 999px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.cs-layer-progress > span {
  display: block;
  height: 100%;
  background: var(--cs-dream);
  border-radius: inherit;
  transition: width 0.35s ease;
}

@keyframes csFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .cs-hero { padding: 3rem 0 2rem; }
  .cs-section { padding: 2.5rem 0; }
  .cs-ix { padding: 1.25rem; }
  .cs-h1 { max-width: none; }
}

/* =========================================================
   Dream Laser — cartoon scroll story (1→5)
   ========================================================= */
.cs-page--story {
  position: relative;
}

.cs-story-rail {
  position: fixed;
  top: 50%;
  /* visual left in RTL page */
  left: max(0.65rem, env(safe-area-inset-left));
  right: auto;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--cs-line);
  box-shadow: 0 10px 28px rgba(26, 31, 46, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: visible;
}

.cs-story-dot {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--cs-line);
  background: #fff;
  color: var(--cs-muted);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cs-story-dot > span:first-child {
  display: block;
}

.cs-story-tip {
  position: absolute;
  top: 50%;
  left: calc(100% + 0.65rem);
  right: auto;
  transform: translateY(-50%) translateX(-4px);
  white-space: nowrap;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  background: #1a1f2e;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  box-shadow: 0 8px 22px rgba(26, 31, 46, 0.22);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 2;
}

.cs-story-tip::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  left: auto;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #1a1f2e;
}

.cs-story-dot:hover .cs-story-tip,
.cs-story-dot:focus-visible .cs-story-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.cs-story-dot:hover {
  border-color: var(--cs-accent);
  color: var(--cs-accent);
  transform: scale(1.08);
}

.cs-story-dot.is-active {
  background: var(--cs-accent);
  border-color: var(--cs-accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 111, 237, 0.35);
}

.cs-story-dot.is-pop {
  animation: csStoryPop 0.45s cubic-bezier(0.34, 1.45, 0.64, 1);
}

@keyframes csStoryPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

.cs-chapter {
  --cs-vis: 0;
  position: relative;
  scroll-margin-top: calc(var(--gh-height, 78px) + 0.75rem);
  opacity: 0.42;
  transform: scale(0.965) translateY(18px);
  filter: saturate(0.85);
  transition:
    opacity 0.55s ease,
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.55s ease;
  will-change: transform, opacity;
}

.cs-chapter.is-seen {
  opacity: 0.72;
  transform: scale(0.985) translateY(8px);
  filter: saturate(0.95);
}

.cs-chapter.is-inview {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: saturate(1);
}

.cs-chapter-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cs-chapter-head--inline {
  margin-bottom: 0.85rem;
}

.cs-chapter-num {
  position: relative;
  flex: 0 0 auto;
  width: 3.15rem;
  height: 3.15rem;
  display: grid;
  place-items: center;
  color: #2a3142;
  background: transparent;
  box-shadow: none;
  border: none;
  transform: rotate(-3deg);
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.cs-chapter-num-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cs-chapter-num-ring path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
  vector-effect: non-scaling-stroke;
}

.cs-chapter-digit {
  position: relative;
  z-index: 1;
  font-family: 'Caveat', 'Assistant', cursive;
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: inherit;
  transform: translateY(1px);
}

.cs-chapter.is-inview .cs-chapter-num {
  transform: rotate(0deg) scale(1.06);
  color: #1a1f2e;
}

.cs-page--story [data-story-zoom] {
  --cs-zoom: 0.94;
  --cs-fade: 0.45;
  opacity: var(--cs-fade);
  transform: scale(var(--cs-zoom));
  transform-origin: center center;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, opacity;
}

.cs-page--story [data-story-zoom].is-zoomed {
  opacity: 1;
}

.cs-page--story .cs-story-hero {
  position: relative;
}

.cs-page--story .cs-story-hero::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--cs-bg));
  pointer-events: none;
}

@media (max-width: 980px) {
  .cs-story-rail {
    top: auto;
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    flex-direction: row;
    padding: 0.4rem 0.55rem;
  }

  .cs-story-dot {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .cs-story-tip {
    top: auto;
    bottom: calc(100% + 0.55rem);
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(4px);
  }

  .cs-story-tip::before {
    top: 100%;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1f2e;
    border-right-color: transparent;
  }

  .cs-story-dot:hover .cs-story-tip,
  .cs-story-dot:focus-visible .cs-story-tip {
    transform: translateX(-50%) translateY(0);
  }

  .cs-page--story {
    padding-bottom: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-chapter,
  .cs-page--story [data-story-zoom],
  .cs-story-dot,
  .cs-chapter-num {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .cs-story-rail {
    display: none;
  }
}

/* Advanced automations — branching sketch */
.cs-auto-branches {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
  justify-items: stretch;
}

.cs-auto-node {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1.5px dashed #c4a574;
  background: #fffdf8;
  color: var(--cs-ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(139, 105, 20, 0.06);
}

.cs-auto-node--root {
  border-style: solid;
  border-color: #8b6914;
  background: linear-gradient(180deg, #fff 0%, #fbf6ea 100%);
}

.cs-auto-fork {
  width: 2px;
  height: 18px;
  margin-inline: auto;
  background: #c4a574;
  border-radius: 2px;
  position: relative;
}

.cs-auto-fork::before,
.cs-auto-fork::after {
  content: '';
  position: absolute;
  top: 100%;
  width: 42%;
  height: 2px;
  background: #c4a574;
}

.cs-auto-fork::before { right: 50%; }
.cs-auto-fork::after { left: 50%; }

.cs-auto-branch-row {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 700px) {
  .cs-auto-branch-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cs-discovery-visual--wa {
  border: none;
  box-shadow: none;
  background: transparent;
  max-width: 420px;
  justify-self: center;
}

/* Saraf §4 — bot + WA messages collage */
.cs-saraf-bot-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 1.75rem 1.25rem 2.5rem 1.75rem;
  max-width: none;
  min-height: 20rem;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.cs-saraf-bot-shot {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 180px);
  height: auto;
  transform: rotate(-3deg);
  transform-origin: center center;
  border-radius: 12px;
  background: transparent;
  border: none;
  box-shadow:
    0 14px 32px rgba(26, 31, 46, 0.2),
    0 2px 8px rgba(26, 31, 46, 0.08);
}

.cs-saraf-wa-shot {
  position: absolute;
  height: auto;
  border-radius: 12px;
  background: transparent;
  border: none;
  box-shadow:
    0 16px 40px rgba(26, 31, 46, 0.24),
    0 2px 10px rgba(26, 31, 46, 0.1);
  pointer-events: none;
}

.cs-saraf-wa-shot--approval {
  z-index: 2;
  top: 0.15rem;
  right: -0.15rem;
  width: min(68%, 200px);
  max-width: 220px;
  transform: rotate(-8deg);
  transform-origin: center center;
  animation: csFloatMsg 5.2s ease-in-out infinite;
}

.cs-saraf-wa-shot--coupon {
  z-index: 3;
  bottom: 0.2rem;
  left: -0.15rem;
  width: min(72%, 210px);
  max-width: 230px;
  transform: rotate(7deg);
  transform-origin: center center;
  animation: csFloatWa 4.8s ease-in-out infinite;
}

@media (min-width: 640px) {
  .cs-saraf-bot-stage {
    padding: 2rem 1.5rem 2.75rem 2.25rem;
    min-height: 22rem;
  }

  .cs-saraf-bot-shot {
    width: min(100%, 210px);
  }

  .cs-saraf-wa-shot--approval {
    width: min(60%, 240px);
    max-width: 260px;
    top: 0;
    right: -0.35rem;
  }

  .cs-saraf-wa-shot--coupon {
    width: min(64%, 260px);
    max-width: 280px;
    bottom: 0;
    left: -0.35rem;
  }
}

@media (min-width: 900px) {
  .cs-saraf-bot-shot {
    width: min(100%, 230px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-saraf-wa-shot--approval,
  .cs-saraf-wa-shot--coupon { animation: none; }
}

.cs-page[data-study="saraf-shorashim"] .cs-story-dot.is-active {
  background: #8b6914;
  border-color: #8b6914;
  box-shadow: 0 6px 16px rgba(139, 105, 20, 0.3);
}

.cs-page[data-study="saraf-shorashim"] .cs-story-dot:hover {
  border-color: #8b6914;
  color: #8b6914;
}

/* =========================================================
   Saraf — scroll night + CSS route map
   ========================================================= */
.cs-page[data-study="saraf-shorashim"] {
  --cs-night: 0;
  --cs-glow: 0.55;
  --cs-route-progress: 0;
  --cs-night-bg: #0e1016;
  --cs-night-ink: #ffffff;
  --cs-night-muted: rgba(255, 255, 255, 0.82);
  --cs-night-line: rgba(196, 165, 116, 0.35);
  --cs-night-gold: #d4b483;
  position: relative;
  isolation: isolate;
}

.cs-page[data-study="saraf-shorashim"]::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(139, 105, 20, 0.14), transparent 60%),
    var(--cs-night-bg);
  opacity: var(--cs-night);
  transition: opacity 0.08s linear;
}

/* Keep story rail fixed — do NOT force position:relative on it */
.cs-page[data-study="saraf-shorashim"] > *:not(.cs-story-rail) {
  position: relative;
  z-index: 1;
}

.cs-page[data-study="saraf-shorashim"] > .cs-story-rail {
  position: fixed;
  z-index: 60;
}

.cs-page[data-study="saraf-shorashim"].is-night .cs-story-rail {
  background: rgba(18, 20, 28, 0.88);
  border-color: rgba(196, 165, 116, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.cs-page[data-study="saraf-shorashim"].is-night .cs-story-dot {
  background: #1a1d27;
  border-color: rgba(196, 165, 116, 0.35);
  color: rgba(244, 239, 230, 0.7);
}

.cs-page[data-study="saraf-shorashim"].is-night .cs-story-dot.is-active {
  background: #c4a574;
  border-color: #c4a574;
  color: #12141c;
  box-shadow: 0 6px 16px rgba(196, 165, 116, 0.35);
}

.cs-page[data-study="saraf-shorashim"].is-night .cs-story-dot:hover {
  border-color: #d4b483;
  color: #d4b483;
}

.cs-page[data-study="saraf-shorashim"] [data-chapter="2"],
.cs-page[data-study="saraf-shorashim"] [data-chapter="3"] {
  color: var(--cs-ink);
}

/* Section 2 prose stays solid until night; map labels go white in night */
.cs-page[data-study="saraf-shorashim"] [data-chapter="2"] .cs-chapter-head .cs-h2,
.cs-page[data-study="saraf-shorashim"] [data-chapter="2"] .cs-chapter-head .cs-section-label,
.cs-page[data-study="saraf-shorashim"] [data-chapter="2"] > .cs-wrap > .cs-prose,
.cs-page[data-study="saraf-shorashim"] [data-chapter="2"] > .cs-wrap > .cs-prose p,
.cs-page[data-study="saraf-shorashim"] [data-chapter="2"] > .cs-wrap > .cs-prose strong,
.cs-page[data-study="saraf-shorashim"] [data-chapter="2"] .cs-chapter-head .cs-chapter-num,
.cs-page[data-study="saraf-shorashim"] [data-chapter="2"] .cs-chapter-head .cs-chapter-digit {
  color: color-mix(
    in srgb,
    var(--cs-ink) calc((1 - var(--cs-night)) * 100%),
    #fff calc(var(--cs-night) * 100%)
  );
  opacity: 1;
}

.cs-page[data-study="saraf-shorashim"] [data-chapter="2"] .cs-section-label {
  color: color-mix(
    in srgb,
    var(--cs-accent) calc((1 - var(--cs-night)) * 100%),
    var(--cs-night-gold) calc(var(--cs-night) * 100%)
  );
}

.cs-page[data-study="saraf-shorashim"].is-night [data-chapter="3"] {
  color: #fff;
}

.cs-page[data-study="saraf-shorashim"].is-night [data-chapter="3"] .cs-h2,
.cs-page[data-study="saraf-shorashim"].is-night [data-chapter="3"] .cs-section-label,
.cs-page[data-study="saraf-shorashim"].is-night [data-chapter="3"] .cs-prose,
.cs-page[data-study="saraf-shorashim"].is-night [data-chapter="3"] .cs-prose p,
.cs-page[data-study="saraf-shorashim"].is-night [data-chapter="3"] .cs-prose strong,
.cs-page[data-study="saraf-shorashim"].is-night [data-chapter="3"] .cs-chapter-num,
.cs-page[data-study="saraf-shorashim"].is-night .cs-route-father,
.cs-page[data-study="saraf-shorashim"].is-night .cs-route-father strong,
.cs-page[data-study="saraf-shorashim"].is-night .cs-route-node-name {
  color: #fff;
  opacity: 1;
}

.cs-page[data-study="saraf-shorashim"] [data-chapter="2"] .cs-discovery-visual {
  border-color: color-mix(
    in srgb,
    var(--cs-line) calc((1 - var(--cs-night)) * 100%),
    rgba(196, 165, 116, 0.25) calc(var(--cs-night) * 100%)
  );
  box-shadow: 0 14px 40px rgba(0, 0, 0, calc(0.06 + var(--cs-night) * 0.35));
}

/* Route map — top-down: 3 fathers → stages */
.cs-route-map {
  margin-top: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.cs-route-map--bare {
  margin-top: 1.75rem;
}

.cs-route-canvas {
  position: relative;
  width: 100%;
  margin-top: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.cs-route-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 360px;
}

.cs-route-grid path {
  fill: none;
  stroke: color-mix(in srgb, #8b6914 calc(var(--cs-night) * 100%), #c4a574);
  stroke-width: 1;
}

.cs-route-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cs-route-line--track {
  stroke: color-mix(
    in srgb,
    #b8bcc6 calc((1 - var(--cs-night)) * 100%),
    #5c6270 calc(var(--cs-night) * 100%)
  );
  stroke-width: 5;
  opacity: 0.55;
}

.cs-route-line--draw {
  stroke-width: 5.5;
  opacity: calc(0.75 + var(--cs-glow) * 0.25);
  transition: stroke-dashoffset 0.05s linear;
}

.cs-route-line--fork {
  stroke: #c4a574;
  stroke-width: 4.5;
}

.cs-route-line--sales { stroke: url(#csRouteGold); }
.cs-route-line--workshops { stroke: url(#csRouteBlue); }
.cs-route-line--wholesale { stroke: url(#csRouteBrown); }

.cs-route-fathers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.cs-route-father {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 10.5rem;
  max-width: 12.5rem;
  padding: 0.55rem 0.75rem 0.55rem 0.5rem;
  border-radius: 999px;
  border: 1.5px solid rgba(196, 165, 116, 0.65);
  background: color-mix(
    in srgb,
    rgba(255, 253, 248, 0.96) calc((1 - var(--cs-night)) * 100%),
    rgba(28, 31, 42, 0.94) calc(var(--cs-night) * 100%)
  );
  box-shadow:
    0 0 0 4px rgba(196, 165, 116, 0.1),
    0 12px 28px rgba(0, 0, 0, calc(0.12 + var(--cs-night) * 0.3));
  text-align: start;
  color: color-mix(
    in srgb,
    var(--cs-ink) calc((1 - var(--cs-night)) * 100%),
    #fff calc(var(--cs-night) * 100%)
  );
}

.cs-route-father[data-branch="workshops"] {
  border-color: rgba(139, 155, 180, 0.7);
  box-shadow:
    0 0 0 4px rgba(139, 155, 180, 0.1),
    0 12px 28px rgba(0, 0, 0, calc(0.12 + var(--cs-night) * 0.3));
}

.cs-route-father[data-branch="wholesale"] {
  border-color: rgba(154, 123, 85, 0.7);
  box-shadow:
    0 0 0 4px rgba(154, 123, 85, 0.1),
    0 12px 28px rgba(0, 0, 0, calc(0.12 + var(--cs-night) * 0.3));
}

.cs-route-father-badge {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #efd4a0, #8b6914);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 4px 10px rgba(139, 105, 20, 0.3);
}

.cs-route-father[data-branch="workshops"] .cs-route-father-badge {
  background: linear-gradient(145deg, #c5d0e0, #5a6b84);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 4px 10px rgba(90, 107, 132, 0.3);
}

.cs-route-father[data-branch="wholesale"] .cs-route-father-badge {
  background: linear-gradient(145deg, #d4b48a, #6e4f32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 4px 10px rgba(110, 79, 50, 0.3);
}

.cs-route-father-badge span {
  font-family: 'Caveat', 'Assistant', cursive;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(1px);
}

.cs-route-father-copy {
  min-width: 0;
}

.cs-route-father-copy strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.cs-route-father-copy em {
  display: block;
  margin-top: 0.12rem;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.72;
  line-height: 1.25;
}

.cs-page[data-study="saraf-shorashim"].is-night .cs-route-father,
.cs-page[data-study="saraf-shorashim"].is-night .cs-route-father strong,
.cs-page[data-study="saraf-shorashim"].is-night .cs-route-father-copy em {
  color: #fff;
}

.cs-page[data-study="saraf-shorashim"].is-night .cs-route-father-copy em {
  opacity: 0.8;
}

.cs-route-father-index {
  display: none;
}

.cs-route-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cs-route-stop {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 5.8rem;
}

.cs-route-stop:hover,
.cs-route-stop.is-open {
  z-index: 8;
}

.cs-route-node {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  font: inherit;
  width: 100%;
}

.cs-route-layer[data-branch="sales"] .cs-route-node-dot { border-color: #c4a574; }
.cs-route-layer[data-branch="workshops"] .cs-route-node-dot { border-color: #8b9bb4; }
.cs-route-layer[data-branch="wholesale"] .cs-route-node-dot { border-color: #9a7b55; }

.cs-route-node-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid #c4a574;
  background: color-mix(
    in srgb,
    #fff calc((1 - var(--cs-night)) * 100%),
    #151821 calc(var(--cs-night) * 100%)
  );
  box-shadow:
    0 0 0 4px rgba(196, 165, 116, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cs-route-node:hover .cs-route-node-dot,
.cs-route-node:focus-visible .cs-route-node-dot,
.cs-route-stop.is-open .cs-route-node-dot {
  transform: scale(1.22);
  background: #c4a574;
  box-shadow: 0 0 0 6px rgba(196, 165, 116, 0.25), 0 0 22px rgba(196, 165, 116, 0.4);
}

.cs-route-layer[data-branch="workshops"] .cs-route-node:hover .cs-route-node-dot,
.cs-route-layer[data-branch="workshops"] .cs-route-stop.is-open .cs-route-node-dot {
  background: #8b9bb4;
  box-shadow: 0 0 0 6px rgba(139, 155, 180, 0.28), 0 0 22px rgba(139, 155, 180, 0.4);
}

.cs-route-layer[data-branch="wholesale"] .cs-route-node:hover .cs-route-node-dot,
.cs-route-layer[data-branch="wholesale"] .cs-route-stop.is-open .cs-route-node-dot {
  background: #9a7b55;
  box-shadow: 0 0 0 6px rgba(154, 123, 85, 0.28), 0 0 22px rgba(154, 123, 85, 0.4);
}

.cs-route-node-name {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  max-width: 5.8rem;
  padding: 0.15rem 0.35rem;
  border-radius: 8px;
  background: color-mix(
    in srgb,
    rgba(255, 255, 255, 0.88) calc((1 - var(--cs-night)) * 100%),
    rgba(18, 20, 28, 0.85) calc(var(--cs-night) * 100%)
  );
  opacity: calc(0.5 + var(--cs-glow) * 0.5);
  transition: opacity 0.2s ease, color 0.2s ease;
}

.cs-route-node:hover .cs-route-node-name,
.cs-route-node:focus-visible .cs-route-node-name,
.cs-route-stop.is-open .cs-route-node-name {
  opacity: 1;
  color: color-mix(
    in srgb,
    #8b6914 calc((1 - var(--cs-night)) * 100%),
    var(--cs-night-gold) calc(var(--cs-night) * 100%)
  );
}

.cs-route-card {
  position: absolute;
  top: 50%;
  left: calc(100% + 0.55rem);
  transform: translateY(-50%) translateX(6px);
  width: min(240px, 68vw);
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(196, 165, 116, 0.4);
  background: color-mix(
    in srgb,
    #fffdf8 calc((1 - var(--cs-night)) * 100%),
    #1c1f2a calc(var(--cs-night) * 100%)
  );
  color: color-mix(
    in srgb,
    var(--cs-ink) calc((1 - var(--cs-night)) * 100%),
    var(--cs-night-ink) calc(var(--cs-night) * 100%)
  );
  box-shadow: 0 16px 40px rgba(0, 0, 0, calc(0.14 + var(--cs-night) * 0.35));
  text-align: start;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 9;
}

.cs-route-card::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-right-color: rgba(196, 165, 116, 0.4);
}

/* Middle column: card to the side that has more space (prefer left in RTL visual = toward sales) */
.cs-route-layer[data-branch="workshops"] .cs-route-card {
  left: auto;
  right: calc(100% + 0.55rem);
  transform: translateY(-50%) translateX(-6px);
}

.cs-route-layer[data-branch="workshops"] .cs-route-card::before {
  right: auto;
  left: 100%;
  border-right-color: transparent;
  border-left-color: rgba(196, 165, 116, 0.4);
}

.cs-route-layer[data-branch="wholesale"] .cs-route-card {
  left: auto;
  right: calc(100% + 0.55rem);
  transform: translateY(-50%) translateX(-6px);
}

.cs-route-layer[data-branch="wholesale"] .cs-route-card::before {
  right: auto;
  left: 100%;
  border-right-color: transparent;
  border-left-color: rgba(196, 165, 116, 0.4);
}

.cs-route-card strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: color-mix(
    in srgb,
    #8b6914 calc((1 - var(--cs-night)) * 100%),
    var(--cs-night-gold) calc(var(--cs-night) * 100%)
  );
}

.cs-route-card p {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.92;
}

.cs-route-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.28rem;
}

.cs-route-card li {
  position: relative;
  padding-inline-start: 0.85rem;
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0.85;
}

.cs-route-card li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c4a574;
}

.cs-route-stop:hover .cs-route-card,
.cs-route-stop:focus-within .cs-route-card,
.cs-route-stop.is-open .cs-route-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.cs-route-layer[data-branch="workshops"] .cs-route-stop:hover .cs-route-card,
.cs-route-layer[data-branch="workshops"] .cs-route-stop:focus-within .cs-route-card,
.cs-route-layer[data-branch="workshops"] .cs-route-stop.is-open .cs-route-card,
.cs-route-layer[data-branch="wholesale"] .cs-route-stop:hover .cs-route-card,
.cs-route-layer[data-branch="wholesale"] .cs-route-stop:focus-within .cs-route-card,
.cs-route-layer[data-branch="wholesale"] .cs-route-stop.is-open .cs-route-card {
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 900px) {
  .cs-route-canvas {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cs-route-svg {
    min-width: 700px;
    min-height: 520px;
  }

  .cs-route-layer,
  .cs-route-fathers {
    min-width: 700px;
  }

  .cs-route-father {
    min-width: 9rem;
    max-width: 10.5rem;
    padding: 0.4rem 0.55rem 0.4rem 0.4rem;
    gap: 0.4rem;
  }

  .cs-route-father-badge {
    width: 1.7rem;
    height: 1.7rem;
  }

  .cs-route-father-copy strong {
    font-size: 0.74rem;
  }

  .cs-route-father-copy em {
    font-size: 0.6rem;
  }
}

@media (max-width: 560px) {
  .cs-route-svg {
    min-width: 640px;
  }

  .cs-route-layer,
  .cs-route-fathers {
    min-width: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-page[data-study="saraf-shorashim"]::before {
    transition: none;
  }
}

/* —— Modules verticals (business-type cubes + detail pages) —— */
.cs-card-visual--vertical img {
  object-fit: cover;
}

.cs-card-visual--lawyers {
  background: linear-gradient(145deg, #1a2744 0%, #2c3e5c 100%);
}

.cs-card-visual--clinics {
  background: #0f172a;
}

.cs-card-visual--awnings {
  background: linear-gradient(145deg, #1e3a2f 0%, #2d5a45 100%);
}

.cs-card-visual--print {
  background: #eef2ff;
}

.cs-card-visual--carpentry {
  background: #f3efe6;
}

.cs-hero[data-theme="lawyers"] {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(26, 39, 68, 0.12), transparent 55%),
    linear-gradient(180deg, #f4f6fa 0%, var(--cs-bg) 100%);
}

.cs-hero[data-theme="clinics"] {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(30, 79, 214, 0.12), transparent 55%),
    linear-gradient(180deg, #f3f6ff 0%, var(--cs-bg) 100%);
}

.cs-hero[data-theme="awnings"] {
  background:
    radial-gradient(ellipse 70% 50% at 0% 10%, rgba(45, 90, 69, 0.14), transparent 50%),
    linear-gradient(180deg, #f2f7f4 0%, var(--cs-bg) 100%);
}

.cs-hero[data-theme="print"] {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(30, 79, 214, 0.12), transparent 55%),
    linear-gradient(180deg, #f3f6ff 0%, var(--cs-bg) 100%);
}

.cs-hero[data-theme="carpentry"] {
  background:
    radial-gradient(ellipse 70% 50% at 0% 10%, rgba(196, 165, 116, 0.22), transparent 50%),
    linear-gradient(180deg, #fbf8f2 0%, var(--cs-bg) 100%);
}

.cs-kicker a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.cs-kicker a:hover {
  color: var(--cs-accent);
}

.cs-section--soft {
  background: #fff;
  border-block: 1px solid var(--cs-line);
}

.cs-section--cta {
  padding-bottom: 4.5rem;
}

.mk-vertical-list,
.mk-vertical-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.mk-vertical-list li,
.mk-vertical-features li {
  position: relative;
  padding: 1rem 1.15rem;
  padding-inline-start: 2.75rem;
  background: var(--cs-surface);
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  line-height: 1.55;
  color: var(--cs-ink);
}

.mk-vertical-list li::before,
.mk-vertical-features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 1.05rem;
  top: 1.25rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cs-accent);
}

.mk-vertical-fits {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .mk-vertical-fits {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mk-vertical-fit {
  background: var(--cs-surface);
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  padding: 1.35rem 1.4rem;
}

.mk-vertical-fit h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.mk-vertical-fit p {
  margin: 0;
  color: var(--cs-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.mk-vertical-study {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.75rem;
  padding: 1.35rem 1.5rem;
  padding-inline-end: 2.5rem;
  border-radius: var(--cs-radius);
  border: 1px solid var(--cs-line);
  background: linear-gradient(135deg, #fff 0%, #f3f6ff 100%);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mk-vertical-study:hover {
  transform: translateY(-2px);
  box-shadow: var(--cs-shadow);
}

.mk-vertical-study-label {
  font-weight: 800;
  color: var(--cs-accent);
}

.mk-vertical-study-text {
  color: var(--cs-muted);
  line-height: 1.55;
}

.mk-vertical-study-arrow {
  position: absolute;
  inset-inline-end: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--cs-accent);
}

.mk-vertical-cta {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  padding: 2.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: 20px;
  box-shadow: var(--cs-shadow);
}

.mk-vertical-cta h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
}

.mk-vertical-cta p {
  margin: 0 0 1.35rem;
  color: var(--cs-muted);
  line-height: 1.65;
}

.mk-vertical-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.mk-vertical-more {
  margin: 0 0 4rem;
}

.mk-vertical-more-inner {
  text-align: center;
  padding: 2.25rem 1.5rem;
  border-radius: 20px;
  border: 1px dashed var(--cs-line);
  background: #fff;
}

.mk-vertical-more-inner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.mk-vertical-more-inner p {
  margin: 0 auto 1.25rem;
  max-width: 34rem;
  color: var(--cs-muted);
  line-height: 1.65;
}

@media (min-width: 640px) and (max-width: 959px) {
  .cs-page .cs-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
