/* SageScan Shared Styles - Synchronized with React Version */
/* This file contains the design system variables and base styles */

:root {
  /* Colors - All in HSL format */
  --background: 30 40% 97%;
  --foreground: 263 40% 25%;
  
  --card: 0 0% 100%;
  --card-foreground: 263 40% 25%;
  
  --popover: 0 0% 100%;
  --popover-foreground: 263 40% 25%;
  
  --primary: 263 50% 45%;
  --primary-foreground: 0 0% 100%;
  
  --secondary: 263 45% 38%;
  --secondary-foreground: 0 0% 100%;
  
  --muted: 30 25% 92%;
  --muted-foreground: 263 15% 50%;
  
  --accent: 359 100% 67%;
  --accent-foreground: 0 0% 10%;
  
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  
  --border: 30 20% 88%;
  --input: 30 20% 88%;
  --ring: 263 50% 45%;
  
  --radius: 0.75rem;
}

/* Dark mode variables */
.dark {
  --background: 263 40% 12%;
  --foreground: 30 40% 95%;
  
  --card: 263 35% 15%;
  --card-foreground: 30 40% 95%;
  
  --popover: 263 35% 15%;
  --popover-foreground: 30 40% 95%;
  
  --primary: 263 55% 55%;
  --primary-foreground: 0 0% 100%;
  
  --secondary: 263 45% 45%;
  --secondary-foreground: 0 0% 100%;
  
  --muted: 263 25% 22%;
  --muted-foreground: 30 20% 70%;
  
  --accent: 359 100% 67%;
  --accent-foreground: 0 0% 10%;
  
  --destructive: 0 62% 50%;
  --destructive-foreground: 0 0% 100%;
  
  --border: 263 25% 25%;
  --input: 263 25% 25%;
  --ring: 263 55% 55%;
}

/* Base styles */
* {
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Onest', 'Onest Placeholder', sans-serif;
}

/* Container - matches React version */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* Section Background Colors */
.section-bg-benefits {
  background-color: #FFEBEB;
}

.section-bg-faq {
  background-color: #FFF7F7;
}

.section-bg-made-for {
  background-color: #FF5759;
}

.section-bg-testimonials {
  background-color: #4D217C;
}

.section-bg-products {
  background-color: rgba(255, 127, 127, 0.05);
}

.section-bg-white {
  background-color: #FFFFFF;
}

/* Section Title Styles - NOT BOLD */
.section-title {
  font-size: 3rem;
  font-weight: 400;
  font-family: 'Playfair Display', 'Noto Serif', serif;
  color: black;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3.75rem;
  }
}

.section-title-margin {
  margin-bottom: 5rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Specific */
.faq-container {
  border: 2px solid #FF7F7F;
  border-radius: 1rem;
  padding: 1.5rem;
  background-color: white;
}

.faq-underline {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  width: 5rem;
  height: 4px;
  background-color: #FF7F7F;
}

/* Cycling Words Animation */
.cycling-words {
  display: block;
  animation: slideWords 6s infinite;
}

.cycling-words .word {
  display: block;
  height: 1.2em;
}

@keyframes slideWords {
  0%, 27% {
    transform: translateY(0);
    opacity: 1;
  }
  33% {
    transform: translateY(-1.2em);
    opacity: 0;
  }
  33.33%, 60% {
    transform: translateY(-1.2em);
    opacity: 1;
  }
  66% {
    transform: translateY(-2.4em);
    opacity: 0;
  }
  66.66%, 93% {
    transform: translateY(-2.4em);
    opacity: 1;
  }
  100% {
    transform: translateY(-3.6em);
    opacity: 0;
  }
}

/* Card Styles */
.card-persona {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.card-persona:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background-color: rgba(77, 33, 124, 0.1);
}

.card-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #7634BE;
}

/* Remove any bold from h2 and h3 inside sections */
section h2,
section h3 {
  font-weight: 400;
}

section h2.section-title {
  font-weight: 400 !important;
}
