/* ==========================================================================
   Slovo-CRM — GlossGenius Aesthetic Design System & True Liquid Glass
   ========================================================================== */

/* Токены — в tokens.css. Здесь только поведение компонентов. */

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-wrap: balance;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* Core palette: charcoal, white and the brand accent. */
.bg-\[\#FAF9F6\], .bg-\[\#FAF9F5\], .bg-\[\#F4F4F5\] { background-color: #FFFFFF !important; }
.text-\[\#0F172A\], .text-\[\#17150E\], .text-slate-900, .text-slate-800 { color: var(--ink) !important; }
.text-slate-600, .text-slate-700, .text-slate-500 { color: var(--muted) !important; }
.bg-\[\#18181B\], .bg-\[\#17150E\] { background-color: var(--ink) !important; }
.hover\:bg-black:hover { background-color: var(--ink) !important; }
.border-slate-200\/60, .border-slate-200\/80, .border-slate-200\/90 { border-color: var(--line) !important; }

/* The compact header settles against the viewport top after scrolling. */
.site-header {
  transition: top 240ms ease;
}
.site-header.header-scrolled {
  top: 0;
}

header > a > img { position: relative; z-index: 1; }

.logo-scroll-plaque {
  position: absolute;
  z-index: 0;
  inset: -0.75rem 0;
  border: 0;
  border-radius: 1.35rem;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  box-shadow: none;
  opacity: 0;
  transform: translateY(-0.35rem);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.header-scrolled .logo-scroll-plaque {
  opacity: 1;
  transform: translateY(0);
}

.gg-slider-controls button,
.gg-slider-dots button { color: var(--ink); }

.footer-logo {
  filter: grayscale(1) brightness(0) invert(1);
}

/* Keep legacy utility colors within the brand palette. */
.bg-red-50\/80, .bg-red-100\/90, .bg-emerald-50, .bg-emerald-50\/70, .bg-emerald-100, .bg-emerald-100\/70,
.bg-emerald-100\/80, .bg-emerald-100\/90, .bg-amber-50, .bg-amber-50\/70, .bg-amber-50\/90,
.bg-amber-100, .bg-amber-100\/90, .bg-amber-400\/10, .bg-amber-500 { background-color: var(--accent-tint) !important; }
.text-red-700, .text-emerald-700, .text-emerald-800, .text-emerald-900, .text-amber-400, .text-amber-500,
.text-amber-600, .text-amber-700, .text-amber-800, .text-amber-900, .text-amber-900\/80 { color: var(--accent-ink) !important; }
.border-red-200, .border-red-200\/80, .border-emerald-200, .border-emerald-200\/60, .border-emerald-300,
.border-emerald-300\/80, .border-amber-200, .border-amber-200\/70, .border-amber-300, .border-amber-300\/60 {
  border-color: var(--accent-line) !important;
}

.bg-\[\#FC3F1D\], .bg-\[\#E69A19\], .bg-\[\#DDDD6E\] {
  background-color: var(--accent) !important;
}
.text-\[\#FC3F1D\], .text-\[\#DDDD6E\] { color: var(--accent) !important; }
.border-\[\#E6CE00\] { border-color: var(--accent-line) !important; }

/* Hide scrollbars completely */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* True Liquid Glass Effect (GlossGenius & Apple VisionOS style) */
.liquid-glass-window {
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18) !important;
}
@media (min-width: 1024px) {
  .liquid-glass-window {
    border-bottom: none !important;
  }
}

/* Telegram Translucent Wallpaper (Allows background video to show through with refraction) */
.telegram-wallpaper-glass {
  background-color: transparent !important;
  background-image: 
    radial-gradient(rgba(100, 130, 115, 0.25) 1px, transparent 1px),
    radial-gradient(rgba(100, 130, 115, 0.25) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

.tg-bubble-in {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tg-bubble-out {
  background: rgba(222, 247, 197, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(190, 235, 160, 0.7);
  color: var(--ink);
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tg-btn-chip {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--telegram);
  font-weight: 600;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.tg-btn-chip:hover {
  background: #FFFFFF;
  border-color: var(--telegram);
}

.typing-dots span {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--telegram);
  margin: 0 1.5px;
  animation: tg-typing 1.4s infinite ease-in-out both;
}
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes tg-typing {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes float-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float-subtle 4.5s ease-in-out infinite;
}

/* Animated Mouse Scroll Wheel */
@keyframes mouseScroll {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(3px); opacity: 0.8; }
  100% { transform: translateY(5px); opacity: 0.1; }
}

.animate-mouse-wheel { animation: none; }

/* Olive dynamic benefit card attached to the left screen edge (Subtle translucency & liquid blur DDDD6E) */
.olive-slider-card {
  background: var(--accent) !important;
  color: var(--ink);
  border: none !important;
  outline: none !important;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.08) !important;
}

.olive-slider-attached-left {
  position: relative;
  /* Attached to the left edge of the screen */
  margin-left: calc(-1 * (max(0px, (100vw - 80rem) / 2) + 2rem));
  padding-left: calc(max(0px, (100vw - 80rem) / 2) + 3.25rem);
  border-radius: 0 24px 24px 0 !important;
}

@media (max-width: 639px) {
  .olive-slider-attached-left {
    margin-left: -1rem;
    padding-left: 1.25rem;
    border-radius: 0 20px 20px 0 !important;
  }
}

/* ==========================================================================
   2-Way Live Sync (LinkMatch style) Animation & Effects
   ========================================================================== */
@keyframes syncPulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

.animate-sync-pulse {
  animation: syncPulse 2.5s infinite ease-in-out;
}

@keyframes beamFlowRight {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

@keyframes beamFlowLeft {
  0% { transform: translateX(100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(-100%); opacity: 0; }
}

.animate-beam-right {
  animation: beamFlowRight 2.2s infinite ease-in-out;
}

.animate-beam-left {
  animation: beamFlowLeft 2.2s infinite ease-in-out 1.1s;
}

.sync-card-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.07);
}

/* ==========================================================================
   GlossGenius Style Feature Carousel Gradients
   ========================================================================== */
.gg-card-gradient-sage {
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F4F5 100%) !important;
}
.gg-card-gradient-blue {
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F4F5 100%) !important;
}
.gg-card-gradient-olive {
  background: var(--accent-tint) !important;
}
.gg-card-gradient-periwinkle {
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F4F5 100%) !important;
}

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

.animate-fadeIn {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gg-star {
  outline: none;
  user-select: none;
  display: inline-block;
  transition: transform 0.15s ease, color 0.15s ease;
}
.gg-star:hover {
  color: var(--accent) !important;
}

/* ==========================================================================
   ROI Calculator Range Slider Styles
   ========================================================================== */
input[type="range"].roi-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--line);
  border-radius: 9999px;
  outline: none;
}

input[type="range"].roi-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: background-color 0.15s ease;
}

input[type="range"].roi-range::-webkit-slider-thumb:hover {
  background: var(--accent-hover);
}

input[type="range"].roi-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   GlossGenius Sticky Verticals Drum Wheel & Typography
   ========================================================================== */
.vertical-wheel-item {
  height: 80px;
  line-height: 80px;
  font-family: var(--font-sans);
  letter-spacing: -0.04em;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.25s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
}

/* Natural page scrolling for the directions section. */
#verticals-section {
  scroll-snap-type: y proximity;
}
#verticals-stage {
  scroll-snap-align: center;
}
#verticals-section .vertical-wheel-item {
  scroll-snap-align: center;
}
#verticals-wheel {
  max-height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
#verticals-wheel::-webkit-scrollbar { display: none; }

/* Brand accent replaces legacy amber highlights throughout the landing page. */
.bg-amber-50, .bg-amber-50\/50, .bg-amber-50\/70, .bg-amber-50\/90,
.bg-amber-100, .bg-amber-100\/90, .bg-amber-400\/10 { background-color: color-mix(in srgb, var(--accent) 16%, white) !important; }
.text-amber-400, .text-amber-500, .text-amber-600, .text-amber-700, .text-amber-800,
.text-amber-900, .text-amber-900\/80 { color: #687000 !important; }
.border-amber-200, .border-amber-200\/70, .border-amber-200\/80, .border-amber-300, .border-amber-300\/60,
.border-amber-200\/70 { border-color: color-mix(in srgb, var(--accent) 55%, white) !important; }

@media (min-width: 1536px) {
  .vertical-wheel-item {
    height: 84px;
    line-height: 84px;
    font-size: 54px;
  }
}

@media (min-width: 1280px) and (max-width: 1535px) {
  .vertical-wheel-item {
    height: 80px;
    line-height: 80px;
    font-size: 48px;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .vertical-wheel-item {
    height: 74px;
    line-height: 74px;
    font-size: 42px;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .vertical-wheel-item {
    height: 56px;
    line-height: 56px;
    font-size: 30px;
  }
}

@media (max-width: 639px) {
  .vertical-wheel-item {
    height: 48px;
    line-height: 48px;
    font-size: 23px;
  }
}

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

.vertical-wheel-item:hover {
  opacity: 0.65 !important;
}

.vertical-wheel-item.is-active {
  opacity: 1 !important;
  font-weight: 700;
  color: var(--ink);
}

.vertical-wheel-item.dist-1 {
  opacity: 0.14;
  font-weight: 400;
  transform: scale(0.96);
  color: var(--ink);
}

.vertical-wheel-item.dist-2 {
  opacity: 0.04;
  font-weight: 400;
  transform: scale(0.92);
  color: var(--ink);
}

.vertical-wheel-item.dist-3 {
  opacity: 0.015;
  font-weight: 300;
  transform: scale(0.88);
  color: var(--ink);
}

/* =========================================================================
   GLOSSGENIUS «MADE THE SWITCH» CARDS
   ========================================================================= */
.why-switch-card { border: 1px solid transparent; transition: border-color var(--ease); }
.why-switch-card:hover { border-color: var(--line); }

/* =========================================================================
   GLOSSGENIUS FAQ ACCORDION & FOOTER
   ========================================================================= */
.faq-accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: border-color 0.25s ease;
}

.faq-accordion-item:hover {
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.faq-icon-svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-accordion-item.is-open .faq-icon-svg {
  transform: rotate(45deg);
}

.faq-answer-pane {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-accordion-item.is-open .faq-answer-pane {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-inner {
  overflow: hidden;
}

/* =========================================================================
   GLOSSGENIUS MARQUEE TESTIMONIALS (DOUBLE-ROW INFINITE RUNWAY)
   ========================================================================= */
.marquee-css-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.marquee-track-row {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-track-left {
  animation: marqueeLeft 48s linear infinite;
}

.marquee-track-right {
  animation: marqueeRight 52s linear infinite;
}

.marquee-track-row:hover {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.marquee-review-card {
  width: 310px;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 20px 20px;
  margin-right: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  transition: border-color var(--ease);
  user-select: none;
}

@media (min-width: 640px) {
  .marquee-review-card {
    width: 340px;
    padding: 26px 24px 22px;
    margin-right: 20px;
  }
}

.marquee-review-card:hover {
  border-color: var(--accent-line);
}

/* =========================================================================
   STAN.STORE STYLE PRICING COMPARISON TABLE & HOVER FOCUS
   ========================================================================= */
.pricing-stan-deck {
  perspective: 1000px;
}

.pricing-stan-card {
  background: #FFFFFF !important;
  border-radius: 28px !important;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.35s ease;
  will-change: transform, opacity, box-shadow;
  position: relative;
}

@media (min-width: 1024px) {
  .pricing-stan-card.is-dimmed {
    opacity: 0.5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-color: rgba(226, 232, 240, 0.7);
    cursor: pointer;
  }

  .pricing-stan-card.is-focused {
    opacity: 1 !important;
    box-shadow: 0 0 0 1.5px var(--line) !important;
    border-color: transparent !important;
    z-index: 20;
    cursor: default;
  }

  .pricing-stan-card#plan-studio.is-focused {
    box-shadow: 0 0 0 2px var(--accent) !important;
    border-color: transparent !important;
  }
}

.stan-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9px 0 !important;
  border-bottom: 1px solid rgba(241, 245, 249, 0.95);
  transition: background-color 0.2s ease;
}
.stan-row:last-child {
  border-bottom: none !important;
}
