/**
 * Single responsibility: Styles for the FAQ split layout (40/60),
 * hero screenshot image, and demo tab screenshot image display.
 */

/* ─── Hero Screenshot Carousel (auto-scrolling) ────────────────────────────── */
.hero-screenshot-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Removed fixed aspect ratio and fixed height so images show fully */
}

.hero-screenshot-track {
  display: flex;
  width: 400%; /* 4 slides total (3 + 1 clone) */
  animation: heroAutoScroll 15s cubic-bezier(0.77, 0, 0.17, 1) infinite;
}

.hero-screenshot-track:hover {
  animation-play-state: paused;
}

.hero-screenshot-slide {
  width: 25%; /* 100% / 4 */
  padding: 0 calc(var(--space-4) / 2); /* Small padding so frames don't strictly touch */
  box-sizing: border-box;
}

.hero-screenshot-slide .mockup-window {
  width: 100%;
  height: 100%;
  margin: 0;
}

.hero-screenshot-img-full {
  width: 100%;
  height: auto; /* Natural height, no cropping */
  display: block;
}

/* Keyframes for seamless 3-image infinite slide */
@keyframes heroAutoScroll {
  0%,
  25% {
    transform: translateX(0);
  }
  33%,
  58% {
    transform: translateX(-25%);
  }
  66%,
  91% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(-75%);
  }
}

/* ─── Demo Tab Screenshots & Navigation ───────────────────────────────────────── */
.demo-badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.demo-no-training {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: var(--font-size-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-accent-light);
  text-transform: uppercase;
}

.demo-no-training::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% { transform: translate(-100%, -100%) rotate(45deg); }
  100% { transform: translate(100%, 100%) rotate(45deg); }
}

/* ─── Demo Highlight Strip (unique paragraph design) ─────────────────────────── */
.demo-highlight-strip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-8);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
  border-left: 3px solid var(--color-accent, #3b82f6);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  max-width: 700px;
  margin-inline: auto;
}

.demo-highlight-strip_icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 50%;
  color: var(--color-accent-light, #60a5fa);
}

.demo-highlight-strip_text {
  font-size: var(--font-size-base);
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.7;
  font-weight: 500;
  margin: 0;
}

.tab-nav {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: var(--space-12);
  position: relative;
}

.tab-btn {
  position: relative;
  z-index: 2;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.tab-btn:hover {
  color: white;
}

.tab-btn.is-active {
  color: white;
  background: var(--color-accent);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mockup-window {
  position: relative;
  background: #0d1829;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-2xl);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-window:hover {
  transform: translateY(-8px) scale(1.01);
}

.mockup-window_bar {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.mockup-window_dots {
  display: flex;
  gap: 8px;
}

.mockup-window_dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mockup-window_dot--red { background: #ff5f56; }
.mockup-window_dot--yellow { background: #ffbd2e; }
.mockup-window_dot--green { background: #27c93f; }

.mockup-window_bar-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 40px; /* Offset for dots to center title */
}

.mockup-window_content {
  overflow: hidden;
  line-height: 0;
  position: relative;
}

.tab-panel {
  display: none;
  animation: tabPanelFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-panel.is-active {
  display: block;
}

@keyframes tabPanelFade {
  0% { opacity: 0; transform: translateY(10px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.demo-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.05) 0%,
    rgba(99, 102, 241, 0.03) 100%
  );
}

/* ─── FAQ Split Layout ───────────────────────────────────────────────────────── */
.faq-split-grid {
  display: grid;
  grid-template-columns: 2fr 3fr; /* 40% / 60% */
  gap: var(--space-10);
  align-items: start;
  margin-top: var(--space-2);
}

/* Sticky visual card -stays in view while scrolling accordion */
.faq-visual {
  position: sticky;
  top: 100px;
}

.faq-visual-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.faq-visual-card:hover {
  transform: none;
  box-shadow: none;
}

/* Image area */
/* Image area removed */

/* Caption area - Now the main text column */
.faq-visual-content {
  padding: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  text-align: left;
}

.faq-visual-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

.faq-visual-sub {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 400px;
  margin: 0;
}

.faq-visual-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-pill);
  padding: 4px var(--space-3);
}

.faq-visual-tag svg {
  width: 12px;
  height: 12px;
}

.faq-visual-caption_title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.faq-visual-caption_sub {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 260px;
  margin: 0;
}

/* Accordion column */
.faq-accordion-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Remove max-width constraint set in sections.css for split layout */
.faq-accordion-col .faq-list {
  max-width: none;
}

.faq-whatsapp-nudge {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

.faq-whatsapp-nudge a {
  color: var(--color-accent-light);
  font-weight: 600;
  text-decoration: none;
}

.faq-whatsapp-nudge a:hover {
  text-decoration: underline;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .faq-split-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .faq-visual {
    position: static;
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .faq-visual-caption {
    padding: var(--space-8) var(--space-5) var(--space-8);
  }
}
