/* ============================================
   Memora — Brand stylesheet
   v1.0 · 2026-05-10
   ============================================ */

:root {
  --primary: #AA91F6;
  --primary-deep: #7E5DF0;
  --pink: #F1BFEF;
  --yellow: #F7D480;
  --gray-100: #F5F5F5;
  --gray-200: #E6E6E6;
  --dark: #1F1F1F;
  --bg: #FAF8F4;
  --card-border: #EFEAE2;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Hebrew', sans-serif;
  background-color: var(--bg);
  color: #1F1F1F;
  font-feature-settings: "ss01" on;
}

/* Type system */
.h-display { font-family: 'Noto Sans Hebrew', sans-serif; font-weight: 900; letter-spacing: -0.02em; }
.h-italic  { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.h-mono    { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

.num-display {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  font-optical-sizing: auto;
}

/* Color helpers */
.text-dark      { color: var(--dark); }
.bg-dark        { background: var(--dark); }
.text-primary   { color: var(--primary-deep); }
.bg-primary     { background: var(--primary); }
.border-primary { border-color: var(--primary); }
.bg-bg          { background: var(--bg); }
.bg-pink-soft   { background: #FDE8FB; }
.bg-yellow-soft { background: #FFF1D6; }
.bg-purple-soft { background: #ECE5FE; }

/* Brand gradient mesh */
.mesh {
  background:
    radial-gradient(60% 60% at 18% 28%, rgba(247,212,128,.55) 0%, transparent 60%),
    radial-gradient(55% 55% at 82% 22%, rgba(241,191,239,.55) 0%, transparent 60%),
    radial-gradient(60% 70% at 50% 95%, rgba(170,145,246,.65) 0%, transparent 60%),
    #FAF8F4;
}
.mesh-dark {
  background:
    radial-gradient(50% 50% at 18% 90%, rgba(247,212,128,.20) 0%, transparent 60%),
    radial-gradient(45% 50% at 88% 18%, rgba(170,145,246,.45) 0%, transparent 60%),
    radial-gradient(40% 40% at 50% 50%, rgba(241,191,239,.18) 0%, transparent 60%),
    #1F1F1F;
}

/* Subtle grain overlay */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: overlay; opacity: .35;
}

/* Marquee */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
.marquee-track     { animation: marquee 35s linear infinite; }
.marquee-track-rev { animation: marquee 45s linear infinite reverse; }

/* Buttons */
.btn-dark {
  background: var(--dark); color: #fff;
  padding: 1rem 1.75rem; border-radius: 999px;
  font-weight: 700; display: inline-flex; align-items: center; gap: .65rem;
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(31,31,31,.25); }

.btn-light {
  background: #fff; color: var(--dark);
  padding: 1rem 1.75rem; border-radius: 999px;
  font-weight: 700; border: 1px solid var(--gray-200);
  display: inline-flex; align-items: center; gap: .65rem;
  transition: all .25s ease;
  text-decoration: none;
}
.btn-light:hover { border-color: var(--dark); }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--card-border);
  border-radius: 28px; transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(31,31,31,.08); }

/* Scroll snap */
.snap-row { scroll-snap-type: x mandatory; }
.snap-row > * { scroll-snap-align: start; }
.snap-row::-webkit-scrollbar { display: none; }

/* FAQ */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .3s ease; }

/* Comparison */
.cmp-row + .cmp-row { border-top: 1px dashed var(--gray-200); }
.pill-bad  { color: #B85C5C; }
.pill-good { color: var(--primary-deep); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #E6E0CE; border-radius: 999px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================
   Accessibility — focus, skip link
   ============================================ */
.skip-link {
  position: absolute; top: -40px; right: 0;
  background: var(--dark); color: #fff;
  padding: 8px 16px; z-index: 100;
  text-decoration: none; border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

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

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

/* Floating icon animation */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.float-icon { animation: floaty 4s ease-in-out infinite; }

/* ===== ROI Calculator ===== */
#memora-roi-calculator {
  font-family: 'Noto Sans Hebrew', sans-serif;
  direction: rtl; display: flex; gap: 40px;
  background: #fff; padding: 30px; border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,.04);
  width: 100%; max-width: 950px; margin: 0 auto; box-sizing: border-box;
}
#memora-roi-calculator * { box-sizing: border-box; }
.memora-right-panel { flex: 1.2; display: flex; flex-direction: column; justify-content: center; gap: 35px; padding: 20px 10px; }
.memora-slider-group { display: flex; flex-direction: column; gap: 12px; }
.memora-slider-header { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: #777; font-weight: 400; }
.memora-slider-val { font-size: 32px; font-weight: 700; color: #000; line-height: 1; }
.memora-slider { -webkit-appearance: none; width: 100%; height: 4px; border-radius: 2px; outline: none; background: linear-gradient(to left,#8A63E5 50%,#E5E7EB 50%); direction: rtl; }
.memora-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.15); border: 1px solid #eee; }
.memora-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.15); border: 1px solid #eee; }
.memora-slider-labels { display: flex; justify-content: space-between; font-size: 13px; color: #aaa; font-weight: 600; }
.memora-left-panel { flex: 1; background: linear-gradient(145deg,#F8F4FF 0%,#EFE7FF 100%); border-radius: 20px; padding: 40px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.memora-title { font-size: 22px; font-weight: 600; color: #111; margin: 0 0 15px; }
.memora-total-number { font-size: 64px; font-weight: 700; color: #000; line-height: 1; margin-bottom: 10px; letter-spacing: -1px; }
.memora-subtitle { font-size: 16px; color: #777; margin-bottom: 25px; }
.memora-btn { background-color: #1a101d; color: #fff; text-decoration: none; padding: 14px 32px; border-radius: 12px; font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; transition: transform .2s, background .2s; }
.memora-btn:hover { background-color: #33213a; transform: scale(1.02); color: #fff; }
.memora-btn .arrow { font-size: 18px; }
.memora-divider { width: 100%; height: 1px; background-color: #dcd0ea; margin: 30px 0 20px; }
.memora-breakdown { width: 100%; text-align: right; }
.memora-bd-title { font-size: 14px; color: #777; margin-bottom: 12px; }
.memora-bd-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 15px; color: #555; }
.memora-bd-row span:last-child { color: #888; }
.memora-bd-final { margin-top: 15px; font-weight: 700; color: #111; }
.memora-bd-final span:first-child { color: #111; }
.memora-bd-final span:last-child { color: #8A63E5 !important; font-size: 16px; }
@media (max-width: 768px) {
  #memora-roi-calculator { flex-direction: column; padding: 20px; gap: 20px; }
  .memora-left-panel { padding: 30px 20px; }
  .memora-total-number { font-size: 48px; }
  .memora-right-panel { padding: 10px 0; }
}

/* FAQ purple accordion */
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle::before { content: '+'; }
.faq-item[open] .faq-toggle::before { content: '\2212'; }
