/* ═══════════════════════════════════════════════════════════════
   derech.hilel.link — Numerology-Spiritual Guidance
   Extends portal/css/design-system.css ("Shira Purple")
   Only components unique to derech live here.
   ═══════════════════════════════════════════════════════════════ */

/* ─── derech-specific tokens (extend, don't replace) ─────────── */
:root {
  --derech-hero-gap: 88px;
  --derech-max: 1200px;
  --derech-radius-xxl: 32px;
  --derech-gold-warm: linear-gradient(135deg, #c9a84c 0%, #e8d088 45%, #f4e4a8 100%);
  --derech-purple-warm: linear-gradient(135deg, #6a0380 0%, #8504a2 45%, #c966e8 100%);
  --derech-glow-gold: 0 0 60px rgba(201, 168, 76, 0.28), 0 0 120px rgba(201, 168, 76, 0.1);
  --derech-glow-purple: 0 0 60px rgba(201, 102, 232, 0.28), 0 0 120px rgba(133, 4, 162, 0.1);
}

/* ─── Tehilim-verse background flourish for hero areas ────────── */
.derech-hero-verse {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  font-family: 'David', 'Frank Ruhl Libre', serif;
  font-size: 260px;
  line-height: 1;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  filter: blur(1px);
}
@media (max-width: 767px) {
  .derech-hero-verse { font-size: 140px; }
}

/* ─── Top navigation bar ─────────────────────────────────────── */
.derech-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 1, 24, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 24px;
}
.derech-nav-inner {
  max-width: var(--derech-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.derech-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text-primary);
  font-family: 'Secular One', sans-serif;
  font-size: 1.05rem;
}
.derech-brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--derech-purple-warm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  font-family: 'Secular One', sans-serif; font-size: 1.2rem;
  box-shadow: var(--derech-glow-purple);
}
.derech-brand-mark-img {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 12px rgba(201,168,76,0.35));
  transition: transform 0.35s var(--transition);
}
.derech-brand:hover .derech-brand-mark-img { transform: rotate(15deg) scale(1.05); }
.derech-brand-mark-img img { width: 100%; height: 100%; display: block; }
.derech-brand-title {
  display: flex; flex-direction: column; line-height: 1.1;
}
.derech-brand-title small {
  font-family: 'Heebo', sans-serif; font-weight: 400;
  font-size: 0.72rem; color: var(--text-secondary);
  margin-top: 2px;
}
.derech-nav-links {
  display: flex; align-items: center; gap: 24px;
  list-style: none;
}
.derech-nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.25s ease;
  padding: 6px 0;
  position: relative;
}
.derech-nav-links a:hover, .derech-nav-links a.is-active {
  color: var(--gold-light);
}
.derech-nav-links a.is-active::after {
  content: ''; position: absolute; bottom: -3px; right: 0; left: 0;
  height: 2px; background: var(--derech-gold-warm); border-radius: 2px;
}
.derech-nav-actions {
  display: flex; align-items: center; gap: 10px;
}
.derech-nav-cta {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--derech-gold-warm);
  color: #2b0033;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.3s var(--transition), box-shadow 0.3s ease;
}
.derech-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--derech-glow-gold);
  color: #2b0033;
}

/* Sign-in link — visible + prominent, but less loud than the gold CTA */
.derech-nav-signin {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 102, 232, 0.45);
  background: rgba(133, 4, 162, 0.12);
  color: var(--purple-light);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.derech-nav-signin:hover {
  border-color: var(--gold-light);
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold-light);
}
.derech-nav-signin::before {
  content: '';
  font-size: 0.95rem;
}

/* Account chip — visible when the user is signed in */
.derech-nav-account {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(133,4,162,0.18), rgba(201,168,76,0.1));
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  line-height: 1;
}
.derech-nav-account:hover {
  border-color: var(--gold-light);
  box-shadow: 0 4px 16px rgba(201,168,76,0.2);
}
.derech-nav-account-tier {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(201,168,76,0.18);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.derech-nav-account-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .derech-nav-actions { gap: 6px; }
  .derech-nav-cta { padding: 8px 14px; font-size: 0.82rem; }
  .derech-nav-signin { padding: 7px 14px; font-size: 0.82rem; }
  .derech-nav-account { gap: 6px; padding: 4px 10px 4px 4px; }
  .derech-nav-account-name { font-size: 0.78rem; }
  .derech-nav-account-tier { font-size: 0.65rem; padding: 3px 7px; }
}
.derech-nav-toggle {
  display: none;
  background: none; border: 0; color: var(--gold-light);
  font-size: 1.5rem; cursor: pointer; padding: 4px;
}

@media (max-width: 860px) {
  .derech-nav-links, .derech-nav-cta { display: none; }
  .derech-nav-toggle { display: inline-flex; }
  .derech-nav.is-open .derech-nav-links {
    display: flex; flex-direction: column; gap: 12px;
    position: absolute; inset: 100% 0 auto 0;
    background: rgba(10, 1, 24, 0.95);
    backdrop-filter: blur(24px);
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
  }
  .derech-nav.is-open .derech-nav-cta { display: inline-flex; margin-top: 8px; }
}

/* ─── Hero (homepage) ────────────────────────────────────────── */
.derech-hero {
  position: relative;
  min-height: 78vh;
  padding: 96px 24px 64px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(133,4,162,0.22), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(201,168,76,0.14), transparent 55%),
    linear-gradient(180deg, #0a0118 0%, #130826 50%, #0a0118 100%);
}

/* Mandala backdrop — slow rotation */
.derech-hero-mandala {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  overflow: hidden;
}
.derech-hero-mandala img {
  width: min(90vw, 720px);
  height: auto;
  animation: mandalaSpin 240s linear infinite;
  filter: drop-shadow(0 0 60px rgba(201,168,76,0.15));
}
@keyframes mandalaSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Logo mark */
.derech-hero-logo {
  position: relative;
  z-index: 2;
  width: 140px; height: 140px;
  margin: 0 auto 24px;
  animation: heroLogoBreath 6s ease-in-out infinite;
}
.derech-hero-logo img {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 24px rgba(201,168,76,0.35)) drop-shadow(0 0 60px rgba(133,4,162,0.3));
}
@keyframes heroLogoBreath {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.04); filter: brightness(1.08); }
}

/* Shira photo integrated into hero */
.derech-hero-shira-wrap {
  position: relative;
  z-index: 2;
  margin: 32px auto 40px;
  width: min(280px, 60vw);
  aspect-ratio: 1;
}
.derech-hero-shira-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(201,168,76,0.7);
  box-shadow:
    0 0 0 8px rgba(201,168,76,0.06),
    0 0 0 18px rgba(201,168,76,0.03),
    0 20px 60px rgba(133,4,162,0.5),
    0 0 80px rgba(201,168,76,0.3);
  animation: heroPhotoFloat 8s ease-in-out infinite;
}
@keyframes heroPhotoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
/* Orbiting numerals around Shira */
.derech-hero-shira-orbit {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px dashed rgba(201,168,76,0.25);
  animation: orbitSpin 40s linear infinite;
  pointer-events: none;
}
.derech-hero-shira-orbit::before,
.derech-hero-shira-orbit::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #e8d088, #c9a84c);
  box-shadow: 0 0 12px rgba(201,168,76,0.7);
}
.derech-hero-shira-orbit::before { top: -6px; left: 50%; transform: translateX(-50%); }
.derech-hero-shira-orbit::after { bottom: -6px; left: 50%; transform: translateX(-50%); }
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating badges around Shira on desktop */
.derech-hero-shira-badge {
  position: absolute;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(28,6,52,0.85);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  font-family: 'Heebo', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.derech-hero-shira-badge-1 { top: 6%; right: -30%; }
.derech-hero-shira-badge-2 { top: 45%; right: -35%; }
.derech-hero-shira-badge-3 { bottom: 8%; right: -25%; }
.derech-hero-shira-badge-4 { top: 20%; left: -30%; }
.derech-hero-shira-badge-5 { bottom: 20%; left: -32%; }
@media (max-width: 900px) {
  .derech-hero-shira-badge { display: none; }
}

/* Mobile-only chip strip below the photo — replaces floating badges on small screens */
.derech-hero-badges-mobile {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 32px;
  max-width: 92vw;
  padding: 0 8px;
  position: relative;
  z-index: 2;
}
.derech-hero-badges-mobile span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(28,6,52,0.75);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold-light);
  font-family: 'Heebo', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
@media (max-width: 900px) {
  .derech-hero-badges-mobile { display: flex; }
}

/* ─── Comprehensive responsive tuning ───────────────────────── */
@media (max-width: 640px) {
  .derech-hero {
    min-height: 90vh;
    padding: 72px 20px 48px;
  }
  .derech-hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.05;
  }
  .derech-hero h1::after { width: 60px; margin-top: 14px; }
  .derech-hero .derech-lead {
    font-size: 1rem;
    line-height: 1.65;
    padding: 0 4px;
  }
  .derech-hero-logo {
    width: 96px; height: 96px;
    margin-bottom: 18px;
  }
  .derech-hero-shira-wrap {
    width: min(220px, 68vw);
    margin: 24px auto 20px;
  }
  .derech-hero-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
    margin-bottom: 18px;
  }
  .derech-hero-actions {
    gap: 12px;
    width: 100%;
    flex-direction: column;
  }
  .derech-hero-actions .derech-btn {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
    font-size: 0.98rem;
  }
  .derech-hero-mandala { opacity: 0.35; }
  .derech-hero-mandala img { width: 140vw; }

  /* Sections */
  .derech-section {
    padding: 64px 20px;
  }
  .derech-section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    padding: 0 8px;
  }
  .derech-section-sub {
    font-size: 0.95rem;
    padding: 0 8px;
    margin-bottom: 40px;
  }

  /* Audience cards */
  .derech-audience { padding: 32px 22px; }
  .derech-audience-icon { width: 72px; height: 72px; font-size: 2.2rem; margin-bottom: 18px; }
  .derech-audience h3 { font-size: 1.15rem; }
  .derech-audience p { font-size: 0.9rem; }

  /* Calculator tiles */
  .derech-calc-tile { padding: 26px 20px; }
  .derech-calc-tile-icon { width: 54px; height: 54px; font-size: 1.7rem; margin-bottom: 14px; }
  .derech-calc-tile h3 { font-size: 1.02rem; }

  /* Method */
  .derech-method-step { padding: 26px 20px; }
  .derech-method-step::before {
    width: 38px; height: 38px;
    font-size: 1rem;
    top: -14px; right: 20px;
  }

  /* Shira big card */
  .derech-shira {
    padding: 32px 22px;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .derech-shira-photo {
    width: 180px; height: 180px;
    margin: 0 auto;
  }
  .derech-shira h3 { font-size: 1.35rem; }
  .derech-shira-actions { justify-content: center; flex-wrap: wrap; }
  .derech-shira-actions .derech-btn { flex: 1 1 auto; min-width: 140px; justify-content: center; }

  /* Testimonials */
  .derech-testimonial { padding: 26px 22px; }
  .derech-testimonial-body { font-size: 0.95rem; }

  /* Nav */
  .derech-brand-title { font-size: 0.95rem; }
  .derech-brand-title small { font-size: 0.66rem; }
  .derech-brand-mark-img,
  .derech-brand-mark-img img { width: 38px; height: 38px; }

  /* Footer */
  .derech-footer { padding: 48px 20px 24px; margin-top: 64px; }
  .derech-footer-brand { font-size: 1.2rem; }
  .derech-footer-links { gap: 14px; }
  .derech-footer-links a { font-size: 0.82rem; }

  /* Forms */
  .derech-form-card { padding: 28px 20px; }
  .derech-form-row { gap: 14px; margin-bottom: 16px; }
  .derech-field label { font-size: 0.85rem; }
  .derech-field input, .derech-field select { padding: 12px 16px; font-size: 0.95rem; }
  .derech-submit { padding: 16px; font-size: 1rem; }
}

/* Tablet range */
@media (min-width: 641px) and (max-width: 900px) {
  .derech-hero { padding: 84px 32px 56px; }
  .derech-hero-shira-wrap { width: 240px; margin: 28px auto 32px; }
  .derech-hero-logo { width: 120px; height: 120px; }
  .derech-section { padding: 80px 32px; }
  .derech-hero-actions { justify-content: center; }
}

/* Larger screens — richer hero */
@media (min-width: 1200px) {
  .derech-hero {
    min-height: 92vh;
    padding: 120px 32px 80px;
  }
  .derech-hero h1 { font-size: 5.2rem; }
  .derech-hero-logo { width: 160px; height: 160px; }
  .derech-hero-shira-wrap { width: 320px; margin: 40px auto 48px; }
  .derech-hero .derech-lead { font-size: 1.4rem; max-width: 780px; }
}

/* Extra-large — desktop cinema */
@media (min-width: 1600px) {
  .derech-hero-shira-wrap { width: 360px; }
  .derech-section { padding: 120px 32px; }
}
.derech-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--gold-light);
  font-size: 0.85rem;
  margin-bottom: 24px;
  z-index: 1;
}
.derech-hero h1 {
  font-family: 'Secular One', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.1;
  margin-bottom: 20px;
  z-index: 1;
  background: linear-gradient(180deg, #fff 0%, #e8d088 60%, #c9a84c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 80px rgba(201, 168, 76, 0.2);
}
.derech-hero p.derech-lead {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 720px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  z-index: 1;
}
.derech-hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: center;
  z-index: 1;
}
.derech-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform 0.3s var(--transition), box-shadow 0.3s ease;
  font-family: 'Heebo', sans-serif;
}
.derech-btn-gold {
  background: var(--derech-gold-warm);
  color: #2b0033;
}
.derech-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--derech-glow-gold);
  color: #2b0033;
}
.derech-btn-outline {
  background: transparent;
  border: 1.5px solid rgba(201, 102, 232, 0.4);
  color: var(--text-primary);
}
.derech-btn-outline:hover {
  border-color: var(--gold-light);
  background: rgba(201, 168, 76, 0.06);
  color: var(--gold-light);
}
.derech-btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* ─── Section shell ──────────────────────────────────────────── */
.derech-section {
  max-width: var(--derech-max);
  margin: 0 auto;
  padding: 96px 24px;
  position: relative;
  z-index: 1;
}
.derech-section-title {
  font-family: 'Secular One', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fbf8fc 0%, #e8d088 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.derech-section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* ─── Audience cards (הורה / זוגיות / אני / משפחה) ────────── */
.derech-audiences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.derech-audience {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--derech-radius-xxl);
  padding: 36px 28px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--transition), border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}
.derech-audience::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201, 102, 232, 0), rgba(201, 168, 76, 0));
  opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none;
}
.derech-audience:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: var(--derech-glow-purple);
}
.derech-audience:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(201, 102, 232, 0.08), rgba(201, 168, 76, 0.04));
}
.derech-audience-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(201, 168, 76, 0.25));
}
.derech-audience h3 {
  font-family: 'Secular One', sans-serif;
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--gold-light);
}
.derech-audience p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.derech-audience-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--purple-light);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ─── Calculator tile grid ──────────────────────────────────── */
.derech-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.derech-calc-tile {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s var(--transition);
  position: relative;
  display: flex; flex-direction: column;
}
.derech-calc-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 102, 232, 0.4);
  box-shadow: 0 12px 40px rgba(133, 4, 162, 0.25);
}
.derech-calc-tile-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 600;
}
.derech-calc-tile-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.derech-calc-tile h3 {
  font-family: 'Secular One', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.derech-calc-tile p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
}
.derech-calc-tile-cta {
  margin-top: 16px;
  color: var(--purple-light);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ─── Method steps (5-step methodology) ─────────────────────── */
.derech-method {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: method;
}
.derech-method-step {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  counter-increment: method;
}
.derech-method-step::before {
  content: counter(method);
  position: absolute; top: -18px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--derech-gold-warm);
  color: #2b0033;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Secular One', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: var(--derech-glow-gold);
}
.derech-method-step h3 {
  font-family: 'Secular One', sans-serif;
  font-size: 1.15rem;
  margin: 8px 0 12px;
  color: var(--gold-light);
}
.derech-method-step p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ─── Shira card (mini-bio + booking CTA) ───────────────────── */
.derech-shira {
  max-width: 960px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(133, 4, 162, 0.14), rgba(201, 168, 76, 0.06));
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: var(--derech-radius-xxl);
  padding: 40px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.derech-shira::before {
  content: ''; position: absolute;
  top: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.18), transparent 70%);
  pointer-events: none;
}
.derech-shira-photo {
  width: 240px; height: 240px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(201, 168, 76, 0.5);
  box-shadow: 0 12px 40px rgba(133, 4, 162, 0.4), var(--derech-glow-gold);
  position: relative;
}
.derech-shira h3 {
  font-family: 'Secular One', sans-serif;
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.derech-shira p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 20px;
}
.derech-shira-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}
@media (max-width: 767px) {
  .derech-shira { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
  .derech-shira-photo { margin: 0 auto; width: 200px; height: 200px; }
  .derech-shira-actions { justify-content: center; }
}

/* ─── Testimonials row ──────────────────────────────────────── */
.derech-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.derech-testimonial {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}
.derech-testimonial::before {
  content: '"';
  position: absolute; top: 0; right: 20px;
  font-family: 'Secular One', sans-serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(201, 168, 76, 0.15);
  pointer-events: none;
}
.derech-testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 12px;
}
.derech-testimonial-body {
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 16px;
}
.derech-testimonial-author {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ─── Calculator form (used in each calculator page) ───────── */
.derech-form-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--derech-radius-xxl);
  padding: 48px 40px;
  box-shadow: var(--shadow-card);
}
.derech-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.derech-form-row.single { grid-template-columns: 1fr; }
@media (max-width: 640px) {
  .derech-form-row { grid-template-columns: 1fr; }
  .derech-form-card { padding: 32px 24px; }
}
.derech-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.derech-field input, .derech-field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  direction: rtl;
}
.derech-field input:focus, .derech-field select:focus {
  border-color: var(--purple-light);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(201, 102, 232, 0.15);
}
.derech-field input::placeholder { color: var(--text-muted); }
.derech-field-help {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.derech-submit {
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--derech-gold-warm);
  color: #2b0033;
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  margin-top: 8px;
}
.derech-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--derech-glow-gold);
}
.derech-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── Result section ────────────────────────────────────────── */
.derech-result {
  max-width: 860px;
  margin: 40px auto 0;
  background: linear-gradient(135deg, rgba(133, 4, 162, 0.14), rgba(201, 168, 76, 0.06));
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--derech-radius-xxl);
  padding: 48px 40px;
  animation: derechFadeIn 0.6s ease;
}
@media (max-width: 640px) {
  .derech-result { padding: 32px 24px; }
}
@keyframes derechFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.derech-result-header {
  text-align: center;
  margin-bottom: 32px;
}
.derech-result-header h2 {
  font-family: 'Secular One', sans-serif;
  font-size: 1.8rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.derech-result-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}
.derech-result-hero-number {
  font-family: 'Secular One', sans-serif;
  font-size: 5rem;
  line-height: 1;
  text-align: center;
  background: var(--derech-gold-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 24px 0 12px;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
}
.derech-result-hero-label {
  text-align: center;
  color: var(--purple-light);
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 32px;
  font-family: 'Secular One', sans-serif;
}
.derech-result-blocks {
  display: grid;
  gap: 24px;
}
.derech-result-block {
  background: rgba(28, 6, 52, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.derech-result-block h3 {
  font-family: 'Secular One', sans-serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.derech-result-block h3 .icon {
  font-size: 1.4rem;
}
.derech-result-block p {
  color: var(--text-primary);
  line-height: 1.85;
  font-size: 1rem;
}
.derech-result-tehilim {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.02));
  border: 1px solid rgba(201, 168, 76, 0.3);
}
.derech-result-tehilim h3 { color: var(--gold); }
.derech-result-tehilim-verse {
  font-family: 'Frank Ruhl Libre', 'David', serif;
  font-size: 1.15rem;
  line-height: 1.9;
  color: #f4e4a8;
  padding: 20px 0;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  margin: 12px 0;
}
.derech-result-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
  justify-content: center;
}

/* ─── Preview blur (paywall gate) ───────────────────────────── */
.derech-locked {
  position: relative;
}
.derech-locked-content {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}
.derech-locked-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px;
  background: linear-gradient(180deg, transparent, rgba(10, 1, 24, 0.85) 60%);
  text-align: center;
}

/* Signed-in premium members: reveal locked content, hide the paywall overlay */
body.derech-is-premium .derech-locked-content {
  filter: none;
  pointer-events: auto;
  user-select: text;
}
body.derech-is-premium .derech-locked-overlay { display: none; }
body.derech-is-premium .derech-locked::before {
  content: ' פתוח לך במנוי';
  position: absolute; top: 14px; left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(201,168,76,0.28), rgba(201,168,76,0.1));
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 3;
  pointer-events: none;
}
.derech-locked-overlay h4 {
  font-family: 'Secular One', sans-serif;
  color: var(--gold-light);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.derech-locked-overlay p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  max-width: 380px;
}

/* ─── FAQ accordion ─────────────────────────────────────────── */
.derech-faq { max-width: 820px; margin: 0 auto; }
.derech-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.derech-faq-item[open] { border-color: rgba(201, 168, 76, 0.35); }
.derech-faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-family: 'Secular One', sans-serif;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  list-style: none;
  transition: color 0.3s ease;
}
.derech-faq-item summary::-webkit-details-marker { display: none; }
.derech-faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.3s ease;
}
.derech-faq-item[open] summary::after { transform: rotate(45deg); }
.derech-faq-item summary:hover { color: var(--gold-light); }
.derech-faq-item p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 0.98rem;
}

/* ─── Pricing tiles ─────────────────────────────────────────── */
.derech-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.derech-price-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--derech-radius-xxl);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all 0.35s var(--transition);
}
.derech-price-card.is-featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    var(--derech-gold-warm) border-box;
  transform: scale(1.03);
  box-shadow: var(--derech-glow-gold);
}
.derech-price-card:hover { transform: translateY(-4px); }
.derech-price-card.is-featured:hover { transform: translateY(-4px) scale(1.03); }
.derech-price-tag {
  position: absolute; top: -14px; right: 50%;
  transform: translateX(50%);
  background: var(--derech-gold-warm);
  color: #2b0033;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}
.derech-price-name {
  font-family: 'Secular One', sans-serif;
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.derech-price-value {
  font-family: 'Secular One', sans-serif;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.derech-price-value small {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}
.derech-price-period {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.derech-price-list {
  list-style: none;
  text-align: right;
  margin-bottom: 32px;
}
.derech-price-list li {
  padding: 10px 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  display: flex; align-items: flex-start; gap: 10px;
  border-bottom: 1px solid rgba(201, 102, 232, 0.08);
}
.derech-price-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}
.derech-price-list li.na { color: var(--text-muted); }
.derech-price-list li.na::before { content: '–'; color: var(--text-muted); }

/* ─── Blog list ─────────────────────────────────────────────── */
.derech-blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: var(--derech-max);
  margin: 0 auto;
}
.derech-blog-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s var(--transition);
  display: flex; flex-direction: column;
}
.derech-blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.35);
}
.derech-blog-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(201, 102, 232, 0.12);
  color: var(--purple-light);
  font-size: 0.75rem;
  margin-bottom: 12px;
  align-self: flex-start;
}
.derech-blog-card h3 {
  font-family: 'Secular One', sans-serif;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}
.derech-blog-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
}
.derech-blog-card-meta {
  margin-top: 16px;
  color: var(--purple-light);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.derech-footer {
  background: linear-gradient(180deg, transparent, rgba(10, 1, 24, 0.6));
  border-top: 1px solid var(--glass-border);
  padding: 64px 24px 32px;
  margin-top: 96px;
  text-align: center;
}
.derech-footer-brand {
  font-family: 'Secular One', sans-serif;
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.derech-footer-tag {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}
.derech-footer-links {
  display: flex; gap: 20px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.derech-footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.25s ease;
}
.derech-footer-links a:hover { color: var(--gold-light); }
.derech-footer-social {
  display: flex; gap: 20px;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}
.derech-footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 102, 232, 0.08);
  margin-top: 24px;
}
.derech-footer-badge {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 8px;
}
.derech-footer-badge a {
  color: var(--gold);
  text-decoration: none;
}

/* ─── Breadcrumb / back link ────────────────────────────────── */
.derech-breadcrumb {
  max-width: var(--derech-max);
  margin: 24px auto 0;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.derech-breadcrumb a { color: var(--purple-light); text-decoration: none; }

/* ─── Utility helpers ───────────────────────────────────────── */
.derech-center { text-align: center; }
.derech-mt-16 { margin-top: 16px; }
.derech-mt-24 { margin-top: 24px; }
.derech-mt-32 { margin-top: 32px; }
.derech-mb-16 { margin-bottom: 16px; }
.derech-tag-gold {
  color: var(--gold-light);
  font-family: 'Secular One', sans-serif;
  letter-spacing: 1px;
  font-size: 0.85rem;
  text-transform: uppercase;
}
.derech-hidden { display: none !important; }

/* ─── Section entrance animation (via IntersectionObserver from JS) ────── */
.derech-fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1); }
.derech-fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* Enhanced hero title */
.derech-hero h1 {
  font-family: 'Secular One', sans-serif;
  font-weight: 700;
  letter-spacing: -1px;
  position: relative;
  z-index: 2;
}
.derech-hero h1::after {
  content: '';
  display: block;
  width: 84px; height: 3px;
  margin: 20px auto 0;
  background: var(--derech-gold-warm);
  border-radius: 3px;
  box-shadow: 0 0 20px rgba(201,168,76,0.5);
}

/* Audience cards — enhanced */
.derech-audience {
  padding: 44px 32px;
}
.derech-audience-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 88px; height: 88px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(133,4,162,0.25), rgba(201,168,76,0.12));
  border: 1px solid rgba(201,168,76,0.35);
  font-size: 2.6rem;
  box-shadow: inset 0 0 20px rgba(201,168,76,0.15), 0 8px 24px rgba(133,4,162,0.25);
  transition: transform 0.4s var(--transition);
}
.derech-audience:hover .derech-audience-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: inset 0 0 24px rgba(201,168,76,0.25), 0 12px 32px rgba(133,4,162,0.4);
}

/* Calculator tiles — enhanced */
.derech-calc-tile {
  padding: 32px 26px;
}
.derech-calc-tile-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(133,4,162,0.2), rgba(201,168,76,0.08));
  border: 1px solid rgba(201,102,232,0.25);
  font-size: 2rem;
  transition: transform 0.4s var(--transition), border-color 0.4s ease;
}
.derech-calc-tile:hover .derech-calc-tile-icon {
  transform: scale(1.08) rotate(4deg);
  border-color: rgba(201,168,76,0.5);
}

/* Method step — enhanced border glow */
.derech-method-step {
  transition: transform 0.4s var(--transition), border-color 0.4s ease, box-shadow 0.4s ease;
}
.derech-method-step:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.4);
  box-shadow: 0 12px 40px rgba(133,4,162,0.25);
}

/* Testimonial — enhanced */
.derech-testimonial {
  transition: transform 0.4s var(--transition), border-color 0.4s ease;
}
.derech-testimonial:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.35);
}

/* Shira big card — enhanced with gradient border */
.derech-shira {
  position: relative;
  background: linear-gradient(135deg, rgba(133,4,162,0.18), rgba(201,168,76,0.08));
  border: 0;
}
.derech-shira::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(201,168,76,0.6), rgba(201,102,232,0.4), rgba(201,168,76,0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* Better section title styling */
.derech-section-title {
  position: relative;
  padding-bottom: 12px;
}
.derech-section-title::after {
  content: '';
  display: block;
  width: 60px; height: 2px;
  margin: 16px auto 0;
  background: var(--derech-gold-warm);
  border-radius: 2px;
  opacity: 0.7;
}

/* Enhanced buttons */
.derech-btn-gold {
  position: relative;
  overflow: hidden;
}
.derech-btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.6s ease;
}
.derech-btn-gold:hover::before { left: 100%; }

/* ─── Toast notification ────────────────────────────────────── */
.derech-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: linear-gradient(135deg, rgba(133, 4, 162, 0.95), rgba(28, 6, 52, 0.95));
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px 24px;
  color: var(--text-primary);
  font-size: 0.95rem;
  box-shadow: var(--shadow-card);
  z-index: 1100;
  max-width: 320px;
  animation: derechToastIn 0.4s ease;
}
@keyframes derechToastIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
