/* Shared Reblooma styles ("Matte Stone"). Page-specific bits live at the bottom. */

html { scroll-behavior: smooth; }
section[id], div[id] { scroll-margin-top: 80px; }

body {
  background-color: #e4deda;
  color: #1c1c1a;
}

.texture-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.surface-tier-1 { background-color: #f3f0ed; border: 1px solid rgba(22, 24, 26, 0.08); }
.surface-tier-2 { background-color: #efebe7; border: 1px solid rgba(22, 24, 26, 0.08); }

.btn-primary {
  background-color: #16181a;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 600;
}
.btn-secondary {
  background-color: transparent;
  color: #16181a;
  border: 1px solid rgba(22, 24, 26, 1);
  border-radius: 4px;
  font-weight: 600;
}

.brand-gradient-text {
  background: linear-gradient(120deg, #3498db, #8e44ad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.savings-bar-gradient { background: linear-gradient(120deg, #3498db, #8e44ad); }

/* ---------- Header: mobile menu ---------- */
#mobile-menu[hidden] { display: none; }

/* ---------- Landing: document glow sequence ---------- */
.doc-row-item { border: 1px solid rgba(22, 24, 26, 0.08); transition: all 0.3s ease; }

@keyframes glow-sequence-1 {
  0%, 33.33% { box-shadow: 0 0 16px rgba(52,152,219,.15), 0 0 8px rgba(142,68,173,.1); background-color: #fff; border-color: rgba(52,152,219,.3); }
  33.34%, 100% { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); background-color: #f3f0ed; border-color: rgba(22,24,26,.15); }
}
@keyframes glow-sequence-2 {
  0%, 33.33% { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); background-color: #f3f0ed; border-color: rgba(22,24,26,.15); }
  33.34%, 66.66% { box-shadow: 0 0 16px rgba(52,152,219,.15), 0 0 8px rgba(142,68,173,.1); background-color: #fff; border-color: rgba(52,152,219,.3); }
  66.67%, 100% { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); background-color: #f3f0ed; border-color: rgba(22,24,26,.15); }
}
@keyframes glow-sequence-3 {
  0%, 66.66% { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); background-color: #f3f0ed; border-color: rgba(22,24,26,.15); }
  66.67%, 100% { box-shadow: 0 0 16px rgba(52,152,219,.15), 0 0 8px rgba(142,68,173,.1); background-color: #fff; border-color: rgba(52,152,219,.3); }
}
.animate-glow-1 { animation: glow-sequence-1 6s infinite; }
.animate-glow-2 { animation: glow-sequence-2 6s infinite; }
.animate-glow-3 { animation: glow-sequence-3 6s infinite; }
.docs-container:hover .doc-row-item { animation-play-state: paused; }
.docs-container .doc-row-item:hover {
  animation: none;
  box-shadow: 0 0 16px rgba(52,152,219,.15), 0 0 8px rgba(142,68,173,.1) !important;
  background-color: #fff !important;
  border-color: rgba(52,152,219,.3) !important;
}

/* ---------- Landing: savings calculator sliders ---------- */
input[type=range].custom-slider { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; }
input[type=range].custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px; width: 16px; border-radius: 50%;
  background: #16181a; cursor: pointer; margin-top: -6px;
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
input[type=range].custom-slider::-webkit-slider-runnable-track {
  width: 100%; height: 4px; cursor: pointer; background: rgba(22,24,26,.1); border-radius: 2px;
}
input[type=range].custom-slider::-moz-range-thumb {
  height: 12px; width: 12px; border-radius: 50%; background: #16181a; border: 2px solid #fff; cursor: pointer;
}
input[type=range].custom-slider::-moz-range-track { height: 4px; background: rgba(22,24,26,.1); border-radius: 2px; }
input[type=range].custom-slider:focus { outline: none; }
input[type=range].custom-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(52,152,219,.4); }

/* ---------- Practitioners: money flow ---------- */
@keyframes flow-down {
  0% { transform: translateY(-100%); opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
@keyframes money-flow {
  0% { left: 0%; opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.animate-money-flow { position: absolute; animation: money-flow 3s infinite linear; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  .animate-glow-1, .animate-glow-2, .animate-glow-3, .animate-money-flow { animation: none; }
}

/* ---------- Waitlist modal ---------- */
.wl-choice[aria-pressed="true"] { background: #16181a; color: #fff; }
.wl-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(22, 24, 26, 0.2);
  background: transparent;
  padding: 8px 0;
  font-size: 16px;
}
.wl-input:focus { outline: none; box-shadow: none; border-bottom-color: #16181a; }
.wl-error { color: #93000a; font-size: 13px; }

/* ---------- About mockup: placeholders you need to fill ---------- */
.placeholder {
  border: 1.5px dashed rgba(142, 68, 173, 0.45);
  background: repeating-linear-gradient(135deg, rgba(52,152,219,.04) 0 12px, rgba(142,68,173,.04) 12px 24px);
  color: rgba(22, 24, 26, 0.55);
}
.fill-me {
  background: rgba(142, 68, 173, 0.1);
  outline: 1px dashed rgba(142, 68, 173, 0.45);
  border-radius: 2px;
  padding: 0 3px;
}
