@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@400;500;700;900&display=swap');

/* ================================================================
   REDESIGN-WARM.CSS  —  "Calm Clinical Editorial" design language
   Phase 1 (foundation): tokens + typography
   Phase 2 (hero): recolour hero + navbar to the warm palette
   Loaded LAST so it wins over the legacy purple stack.
   ================================================================ */

:root {
  /* ── Warm clinical palette ── */
  --w-paper:       #FBF8F3;  /* canvas / off-white */
  --w-sand:        #EAE0D0;  /* soft surfaces */
  --w-sand-deep:   #DCCFB7;  /* hairlines / borders */
  --w-clay:        #C06E4F;  /* single accent */
  --w-clay-deep:   #A85838;  /* accent pressed */
  --w-forest:      #33483D;  /* grounding dark */
  --w-forest-deep: #243329;  /* dark sections */
  --w-ink:         #211E1A;  /* headings */
  --w-stone:       #8A8178;  /* secondary text */
  --w-stone-soft:  #B5ADA3;  /* tertiary text */

  /* ── Type ── */
  --w-display: 'Frank Ruhl Libre', Georgia, 'Times New Roman', serif;
  --w-body:    'Assistant', 'Heebo', sans-serif;
}

/* ───────────────────────────────────────────────────────────────
   1. GLOBAL TYPOGRAPHY
   Headings → editorial serif.  Body / UI → clean sans.
   This single contrast is what breaks the "AI sans" look.
   ─────────────────────────────────────────────────────────────── */
body {
  font-family: var(--w-body);
}

h1, h2, h3,
.hero-title,
.section-title h2,
.fd-how h2, .why-choose-section h2,
.pricing h2, .testimonials h2, .faq-accordion-section h2,
.how-it-looks-section h2, .contact h2,
.section-heading, .cta-title {
  font-family: var(--w-display) !important;
  letter-spacing: -0.01em;
}

/* ───────────────────────────────────────────────────────────────
   2. HERO — recolour to the warm palette (imagery stays)
   ─────────────────────────────────────────────────────────────── */

/* Badge: readable chip — forest bg, white text */
.hero-badge {
  background: rgba(51, 72, 61, 0.88) !important;
  border: 1px solid rgba(51, 72, 61, 0.6) !important;
  color: #ffffff !important;
  font-family: var(--w-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: none !important;
}

/* Title: warm ink, serif (inherits display above) */
.hero-title {
  color: var(--w-ink) !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
  text-shadow:
    0 2px 22px rgba(251, 248, 243, 0.85),
    0 0 40px rgba(251, 248, 243, 0.6);
}

/* Accent line: solid clay (kills the purple gradient-text) */
.hero-accent {
  background: none !important;
  -webkit-text-fill-color: var(--w-clay) !important;
  color: var(--w-clay) !important;
}

/* Sub-headline: deep forest-grey for warmth */
.hero-sub {
  color: #4A4038 !important;
  font-family: var(--w-body) !important;
  text-shadow: 0 1px 10px rgba(251, 248, 243, 0.75);
}

/* CTA: clay instead of purple */
.hero-cta-btn {
  background: var(--w-clay) !important;
  color: var(--w-paper) !important;
  font-family: var(--w-body) !important;
  font-weight: 700 !important;
  box-shadow:
    0 8px 24px rgba(168, 88, 56, 0.28),
    0 2px 6px rgba(168, 88, 56, 0.18) !important;
}
.hero-cta-btn:hover {
  background: var(--w-clay-deep) !important;
  box-shadow:
    0 12px 32px rgba(168, 88, 56, 0.36),
    0 4px 10px rgba(168, 88, 56, 0.22) !important;
}

/* Trust row: forest text, clay checks */
.hero-trust {
  color: var(--w-forest) !important;
  font-family: var(--w-body) !important;
  font-weight: 600 !important;
}
.hero-trust span::before {
  color: var(--w-clay) !important;
}

/* Floating stat card: flat warm card (no glassmorphism) */
.hero-float-card {
  background: var(--w-paper) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--w-sand-deep) !important;
  box-shadow: 0 10px 30px rgba(33, 30, 26, 0.10) !important;
}
.hero-float-pct {
  color: var(--w-forest) !important;
  font-family: var(--w-display) !important;
}
.hero-float-label {
  color: var(--w-stone) !important;
  font-family: var(--w-body) !important;
}

/* ───────────────────────────────────────────────────────────────
   3. NAVBAR — warm buttons
   ─────────────────────────────────────────────────────────────── */
.navbar .register-button {
  background-color: var(--w-clay) !important;
  color: var(--w-paper) !important;
}
.navbar .register-button:hover {
  background-color: var(--w-clay-deep) !important;
}
.navbar .login-button {
  background: transparent !important;
  border: 1.5px solid var(--w-forest) !important;
  color: var(--w-forest) !important;
}
.navbar .login-button:hover {
  background: var(--w-forest) !important;
  color: var(--w-paper) !important;
}

/* ───────────────────────────────────────────────────────────────
   4. LOGO — wordmark to ink, waveform + "קול" to clay (our
   signature voice→text motif, now in the brand accent colour)
   ─────────────────────────────────────────────────────────────── */
.navbar .logo-text,
.clinicall-logo-wrapper .logo-text {
  color: var(--w-ink) !important;
  -webkit-text-fill-color: var(--w-ink) !important;
}
.navbar .bold-kol,
.clinicall-logo-wrapper .bold-kol {
  color: var(--w-clay) !important;
  -webkit-text-fill-color: var(--w-clay) !important;
}
.navbar .voice-icon span,
.clinicall-logo-wrapper .voice-icon span {
  background: linear-gradient(to top, var(--w-clay-deep), var(--w-clay)) !important;
}
.nav-links a:hover { color: var(--w-clay) !important; }

/* ───────────────────────────────────────────────────────────────
   5. REMAP LEGACY TOKENS → warm palette
   figma-redesign.css is driven by a --cl-* token set; remapping it
   here (loaded last) recolours large swaths automatically.
   ─────────────────────────────────────────────────────────────── */
:root {
  --w-sand-soft: #F4ECDE;

  --cl-primary:   #C06E4F !important;
  --cl-primary2:  #A85838 !important;
  --cl-accent:    #33483D !important;  /* was teal — now forest */
  --cl-bg:        #FBF8F3 !important;
  --cl-surface:   #FEFCF9 !important;
  --cl-text:      #211E1A !important;
  --cl-text-mid:  #5A5248 !important;
  --cl-text-light:#8A8178 !important;
  --cl-border:    #DCCFB7 !important;
  --cl-success:   #4A7A5E !important;  /* muted sage, not neon mint */
  --cl-shadow:    0 4px 24px rgba(33,30,26,0.06) !important;
  --cl-shadow-md: 0 10px 32px rgba(33,30,26,0.10) !important;

  --accent-primary: #C06E4F !important;
  --accent-primary-hover: #A85838 !important;
  --accent-primary-light: rgba(192,110,79,0.10) !important;
  --accent-primary-border: rgba(192,110,79,0.22) !important;
  --primary-color: #C06E4F !important;
}

/* ───────────────────────────────────────────────────────────────
   6. SECTIONS — warm backgrounds, editorial alternating rhythm
   ─────────────────────────────────────────────────────────────── */
.how-it-works-steps   { background: var(--w-paper) !important; }
.why-choose-section   { background: var(--w-sand-soft) !important; }
.app-showcase         { background: var(--w-paper) !important; }
.pricing              { background: var(--w-sand-soft) !important; }
.testimonials         { background: var(--w-paper) !important; }
.faq-accordion-section{ background: var(--w-sand-soft) !important; }
.contact              { background: var(--w-paper) !important; }

/* Section subtitles → stone */
.section-title p, .fd-section-sub, .section-subtitle {
  color: var(--w-stone) !important;
  font-family: var(--w-body) !important;
}

/* Accent underline → clay→forest (kills teal→purple) */
.section-title h2::after {
  background: linear-gradient(90deg, var(--w-clay), var(--w-forest)) !important;
}

/* ───────────────────────────────────────────────────────────────
   7. COMPONENT RECOLOUR (exact classes from live DOM)
   ─────────────────────────────────────────────────────────────── */

/* Numbered step circles → clay */
.fd-step-num {
  background: var(--w-clay) !important;
  color: var(--w-paper) !important;
  font-family: var(--w-display) !important;
}

/* Feature + trust icon chips → clay tint */
.fd-feature-icon, .trust-icon {
  background: rgba(192,110,79,0.10) !important;
  color: var(--w-clay) !important;
}
.fd-feature-icon svg, .trust-icon svg { color: var(--w-clay) !important; stroke: var(--w-clay) !important; }

/* Featured pricing card → forest (was purple) */
.pricing-card.popular {
  background: var(--w-forest) !important;
}
.pricing-card.popular * { color: var(--w-paper) !important; }
.pricing-card.popular .pricing-feature svg,
.pricing-card.popular svg { color: var(--w-paper) !important; stroke: var(--w-paper) !important; }

/* Testimonial avatars → clay→forest gradient */
.testimonial-avatar {
  background: linear-gradient(135deg, var(--w-clay) 0%, var(--w-forest) 100%) !important;
}

/* Comparison arrow → clay gradient */
.comparison-arrow {
  background: linear-gradient(135deg, var(--w-clay-deep) 0%, var(--w-clay) 100%) !important;
}

/* Primary CTAs across the page → clay */
.fd-cta-btn, .btn-primary, .btn-free, .mobile-menu-btn.register {
  background: var(--w-clay) !important;
  background-image: none !important;
  color: var(--w-paper) !important;
  font-family: var(--w-body) !important;
}
.fd-cta-btn:hover, .btn-primary:hover, .btn-free:hover {
  background: var(--w-clay-deep) !important;
}

/* Success checkmarks → muted sage (not neon mint) */
.pricing-feature svg, .feature-check, .fg-action-icon-save {
  color: var(--w-forest) !important;
}

/* ───────────────────────────────────────────────────────────────
   8. PASS 2 — dark CTA band, footer, pricing details
   ─────────────────────────────────────────────────────────────── */

/* Final CTA band: dark navy→indigo  →  deep forest */
.final-cta-section.fd-final-cta,
.final-cta-section {
  background: linear-gradient(135deg, #243329 0%, #33483D 100%) !important;
}

/* Footer: near-black navy → warm dark forest */
.footer {
  background: #1E2A23 !important;
}

/* Pricing price numbers → ink (featured stays white via popular rule) */
.pricing-card .price { color: var(--w-ink) !important; }
.pricing-card .price small { color: var(--w-stone) !important; }

/* Green ✓ chips → warm sage */
.pricing-features li.feature-included::before {
  background: rgba(74,122,94,0.16) !important;
  color: var(--w-forest) !important;
}
/* Red ✕ chips → neutral stone (de-emphasised, in-palette) */
.pricing-features li.feature-excluded::before {
  background: var(--w-sand) !important;
  color: var(--w-stone) !important;
}

/* Featured (popular) card button: paper bg + forest text (readable) */
.pricing-card.popular .btn-primary,
.pricing-card.popular button {
  background: var(--w-paper) !important;
  background-image: none !important;
  color: var(--w-forest) !important;
}
/* Free-card outline button → clay outline */
.pricing-card .btn-free {
  background: transparent !important;
  border: 1.5px solid var(--w-clay) !important;
  color: var(--w-clay) !important;
}
.pricing-card .btn-free:hover {
  background: var(--w-clay) !important;
  color: var(--w-paper) !important;
}

/* Featured card: clay frame + clay "most popular" badge (was purple/amber) */
.pricing-card.popular {
  border: 2px solid var(--w-clay) !important;
}
.pricing-card.popular::before {
  background: var(--w-clay) !important;
  color: var(--w-paper) !important;
  -webkit-text-fill-color: var(--w-paper) !important;
  box-shadow: 0 4px 14px rgba(168,88,56,0.40) !important;
}

/* ───────────────────────────────────────────────────────────────
   9. PASS 3 — video showcase panel, CBT summary card, feature tags
   ─────────────────────────────────────────────────────────────── */

/* Video "browser window" panel: deep purple → deep forest */
.macos-window, .video-wrapper-macos {
  background: linear-gradient(160deg, #2E4035 0%, #243329 100%) !important;
}
/* Play button → clay */
.video-play-button, .play-button, .play-btn,
.macos-window .play-icon, .video-wrapper-macos button {
  background: var(--w-clay) !important;
  background-image: none !important;
}

/* Feature tag pills: lavender → sand with clay text */
.feature-tag {
  background: var(--w-sand) !important;
  background-image: none !important;
  color: var(--w-clay-deep) !important;
}
.feature-tag svg, .feature-tag i { color: var(--w-forest) !important; stroke: var(--w-forest) !important; }

/* CBT summary card: purple accent border + labels → clay/forest */
.summary-item {
  border-left-color: var(--w-clay) !important;
  border-right-color: var(--w-clay) !important;
}
.summary-item strong, .summary-item b,
.summary-label, .summary-item .label {
  color: var(--w-clay-deep) !important;
}

/* Mobile menu buttons */
.mobile-menu-btn.login {
  border-color: var(--w-forest) !important;
  color: var(--w-forest) !important;
}
.mobile-menu-btn.register {
  background: var(--w-clay) !important;
  background-image: none !important;
  color: var(--w-paper) !important;
}

/* ───────────────────────────────────────────────────────────────
   10. PASS 4 — beat the inline <style> block (#4b2185 !important)
   `body` prefix raises specificity above the late inline rule.
   ─────────────────────────────────────────────────────────────── */
body .cta-button-purple,
body .btn-primary,
body .pricing-button,
body .submit-button {
  background: var(--w-clay) !important;
  background-image: none !important;
  color: var(--w-paper) !important;
  box-shadow: 0 6px 18px rgba(168,88,56,0.26) !important;
}
body .cta-button-purple:hover,
body .btn-primary:hover,
body .pricing-button:hover,
body .submit-button:hover {
  background: var(--w-clay-deep) !important;
}

/* Remaining scattered purple accents (#5D3FD3) → clay */
.dot-purple { background: var(--w-clay) !important; }
.cliniko-benefit-item:hover { border-color: var(--w-clay) !important; }
.cliniko-benefit-icon i { color: var(--w-clay) !important; }

/* ───────────────────────────────────────────────────────────────
   11. SIGNATURE MOTIF — voice waveform under section titles
   Replaces the generic gradient rule; ties every section to the
   product's voice→text identity. One rule, applied globally.
   ─────────────────────────────────────────────────────────────── */
.section-title h2::after,
.fd-how h2::after,
.why-choose-section h2::after,
.pricing h2::after,
.testimonials h2::after,
.faq-accordion-section h2::after,
.how-it-looks-section h2::after,
.contact h2::after {
  content: '' !important;
  display: block !important;
  width: 76px !important;
  height: 20px !important;
  margin: 20px auto 0 !important;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2776%27%20height%3D%2720%27%20viewBox%3D%270%200%2076%2020%27%3E%3Cg%20fill%3D%27%23C06E4F%27%3E%3Crect%20x%3D%270%27%20%20y%3D%278%27%20%20width%3D%274%27%20height%3D%274%27%20%20rx%3D%272%27%2F%3E%3Crect%20x%3D%278%27%20%20y%3D%275%27%20%20width%3D%274%27%20height%3D%2710%27%20rx%3D%272%27%2F%3E%3Crect%20x%3D%2716%27%20y%3D%271%27%20%20width%3D%274%27%20height%3D%2718%27%20rx%3D%272%27%2F%3E%3Crect%20x%3D%2724%27%20y%3D%276%27%20%20width%3D%274%27%20height%3D%278%27%20%20rx%3D%272%27%2F%3E%3Crect%20x%3D%2732%27%20y%3D%273%27%20%20width%3D%274%27%20height%3D%2714%27%20rx%3D%272%27%2F%3E%3Crect%20x%3D%2740%27%20y%3D%270%27%20%20width%3D%274%27%20height%3D%2720%27%20rx%3D%272%27%2F%3E%3Crect%20x%3D%2748%27%20y%3D%274%27%20%20width%3D%274%27%20height%3D%2712%27%20rx%3D%272%27%2F%3E%3Crect%20x%3D%2756%27%20y%3D%277%27%20%20width%3D%274%27%20height%3D%276%27%20%20rx%3D%272%27%2F%3E%3Crect%20x%3D%2764%27%20y%3D%272%27%20%20width%3D%274%27%20height%3D%2716%27%20rx%3D%272%27%2F%3E%3Crect%20x%3D%2772%27%20y%3D%278%27%20%20width%3D%274%27%20height%3D%274%27%20%20rx%3D%272%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 76px 20px no-repeat !important;
  border-radius: 0 !important;
}

/* RTL-centered titles: keep the waveform centred under centred titles */
.section-title h2 { text-align: center; }

/* ───────────────────────────────────────────────────────────────
   12. FIXES — featured card purple glow/border + waveform spacing
   ─────────────────────────────────────────────────────────────── */

/* Featured pricing card: kill the purple glow + purple top border */
body .pricing-card.popular {
  border-color: var(--w-clay) !important;
  border-top-color: var(--w-clay) !important;
  box-shadow: 0 18px 44px rgba(51, 72, 61, 0.20) !important;
}

/* More breathing room between section title and the waveform motif */
.section-title h2::after,
.fd-how h2::after,
.why-choose-section h2::after,
.pricing h2::after,
.testimonials h2::after,
.faq-accordion-section h2::after,
.how-it-looks-section h2::after,
.contact h2::after {
  margin-top: 40px !important;
}

/* Cancel index-page.css absolute positioning on .section-title h2::after */
.section-title h2::after {
  position: static !important;
  transform: none !important;
  left: auto !important;
  bottom: auto !important;
}

/* ───────────────────────────────────────────────────────────────
   13. LOGIN MODAL — warm palette overrides
   ─────────────────────────────────────────────────────────────── */

/* Icon circle: clay tint instead of lavender */
.modal-icon-wrapper {
  background: rgba(192, 110, 79, 0.10) !important;
  box-shadow: none !important;
}
.modal-icon-wrapper i,
.modal-icon-wrapper svg {
  color: var(--w-clay) !important;
  stroke: var(--w-clay) !important;
}

/* Modal title: ink (not purple) */
.modal-header h3 {
  color: var(--w-ink) !important;
}

/* Submit / login button: clay */
.submit-btn {
  background: var(--w-clay) !important;
  background-image: none !important;
  box-shadow: 0 6px 20px rgba(192, 110, 79, 0.28) !important;
}
.submit-btn:hover:not(:disabled) {
  background: var(--w-clay-deep) !important;
  box-shadow: 0 10px 28px rgba(168, 88, 56, 0.36) !important;
}

/* Input focus ring: clay */
.form-group input:focus,
.password-field input:focus {
  border-color: var(--w-clay) !important;
  box-shadow: 0 0 0 3px rgba(192, 110, 79, 0.12) !important;
  outline: none !important;
}

/* Inline link buttons inside the modal (#6366f1 → clay) */
#loginModal button[onclick*="handleForgotPassword"],
#loginModal button[onclick*="register"] {
  color: var(--w-clay) !important;
}

/* ───────────────────────────────────────────────────────────────
   14. REMAINING PURPLE PATCHES
   ─────────────────────────────────────────────────────────────── */

/* Featured pricing card "popular" button → clay (not violet) */
.pricing-card .btn-primary.btn-popular,
.pricing-card .btn-popular {
  background: var(--w-clay) !important;
  background-image: none !important;
  color: var(--w-paper) !important;
  border-color: var(--w-clay) !important;
  box-shadow: 0 4px 14px rgba(192, 110, 79, 0.30) !important;
}
.pricing-card .btn-primary.btn-popular:hover,
.pricing-card .btn-popular:hover {
  background: var(--w-clay-deep) !important;
  box-shadow: 0 8px 25px rgba(168, 88, 56, 0.38) !important;
}

/* CTA button box-shadow: kill the purple glow */
.fd-cta-btn {
  box-shadow: 0 10px 36px rgba(192, 110, 79, 0.30) !important;
}
.fd-cta-btn:hover {
  box-shadow: 0 16px 48px rgba(168, 88, 56, 0.40) !important;
}

/* Standalone .fd-final-cta (without .final-cta-section sibling class) */
.fd-final-cta {
  background: linear-gradient(135deg, #243329 0%, #33483D 100%) !important;
}

/* Trust items: lavender tint → warm paper/sand */
.trust-item {
  background: linear-gradient(135deg, var(--w-paper) 0%, var(--w-sand) 100%) !important;
  border-color: var(--w-sand-deep) !important;
}
.trust-item:hover {
  background: linear-gradient(135deg, var(--w-sand) 0%, var(--w-sand-deep) 100%) !important;
  box-shadow: 0 12px 30px rgba(192, 110, 79, 0.12) !important;
}

/* ───────────────────────────────────────────────────────────────
   15. PURPLE SHADOW PURGE — replace rgba(87,55,232,…) glow on all
   key buttons with clay rgba(168,88,56,…). Must be in this file
   because index.html does not load redesign-warm-app.css.
   ─────────────────────────────────────────────────────────────── */

/* Register / CTA buttons — normal + hover shadow */
.register-button,
.navbar .register-button {
  box-shadow: 0 4px 14px rgba(168, 88, 56, 0.28) !important;
}
.register-button:hover,
.navbar .register-button:hover {
  box-shadow: 0 6px 20px rgba(168, 88, 56, 0.38) !important;
}

/* Hero CTA button shadows (already has bg override in section 2 above) */
.hero-cta-btn {
  box-shadow: 0 8px 24px rgba(168, 88, 56, 0.28), 0 2px 6px rgba(168, 88, 56, 0.18) !important;
}
.hero-cta-btn:hover {
  box-shadow: 0 12px 32px rgba(168, 88, 56, 0.36), 0 4px 10px rgba(168, 88, 56, 0.22) !important;
}

/* Generic btn-primary and fd-cta-btn shadows */
.btn-primary,
.fd-cta-btn {
  box-shadow: 0 6px 18px rgba(168, 88, 56, 0.26) !important;
}
.btn-primary:hover,
.fd-cta-btn:hover {
  box-shadow: 0 10px 28px rgba(168, 88, 56, 0.36) !important;
}

/* Logo "קול" span — clay in both light and dark */
.logo-kol,
.bold-kol,
.clinicall-logo-wrapper .bold-kol {
  color: var(--w-clay) !important;
  -webkit-text-fill-color: var(--w-clay) !important;
}
