/* ============================================
   she affirms — Landing Page Styles
   ============================================ */

/* --- CSS Custom Properties (Themes) --- */
:root {
  /* warm-pastel (default) */
  --primary: #F0DDD0;
  --primary-rgb: 240, 221, 208;
  --background: #4A3B37;
  --background-light: #FFF8F5;
  --surface: #5A4B47;
  --text: #F5EDE8;
  --text-dark: #3A2B27;
  --accent: #D4A48A;
  --accent-rgb: 212, 164, 138;
  --heart: #E88B9C;
  --border: rgba(240, 221, 208, 0.15);
  --card-bg: rgba(240, 221, 208, 0.06);

  /* Layout */
  --max-width: 1120px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Typography */
  --font-body: -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Didot', 'Playfair Display', Georgia, serif;
}

/* Theme: cool-lavender */
[data-theme="cool-lavender"] {
  --primary: #D4C4E8;
  --primary-rgb: 212, 196, 232;
  --background: #2E2838;
  --background-light: #F5F0FA;
  --surface: #3E3848;
  --text: #EDE8F5;
  --text-dark: #2E2838;
  --accent: #B8A0D0;
  --accent-rgb: 184, 160, 208;
  --heart: #D0A0C8;
  --border: rgba(212, 196, 232, 0.15);
  --card-bg: rgba(212, 196, 232, 0.06);
}

/* Theme: sunset-peach */
[data-theme="sunset-peach"] {
  --primary: #F0C8A0;
  --primary-rgb: 240, 200, 160;
  --background: #3A2E28;
  --background-light: #FFF6EE;
  --surface: #4A3E38;
  --text: #F5EDE0;
  --text-dark: #3A2E28;
  --accent: #E0A878;
  --accent-rgb: 224, 168, 120;
  --heart: #E8A088;
  --border: rgba(240, 200, 160, 0.15);
  --card-bg: rgba(240, 200, 160, 0.06);
}

/* Theme: forest-sage */
[data-theme="forest-sage"] {
  --primary: #B8D0A8;
  --primary-rgb: 184, 208, 168;
  --background: #283028;
  --background-light: #F2F7EF;
  --surface: #384038;
  --text: #E8F0E0;
  --text-dark: #283028;
  --accent: #98B890;
  --accent-rgb: 152, 184, 144;
  --heart: #C0D0A0;
  --border: rgba(184, 208, 168, 0.15);
  --card-bg: rgba(184, 208, 168, 0.06);
}

/* Theme: ocean-blue */
[data-theme="ocean-blue"] {
  --primary: #A0C8E0;
  --primary-rgb: 160, 200, 224;
  --background: #282E38;
  --background-light: #EFF6FB;
  --surface: #383E48;
  --text: #E0EDF5;
  --text-dark: #282E38;
  --accent: #80B0D0;
  --accent-rgb: 128, 176, 208;
  --heart: #A0B8E0;
  --border: rgba(160, 200, 224, 0.15);
  --card-bg: rgba(160, 200, 224, 0.06);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background-color 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background-color: rgba(74, 59, 55, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

[data-theme="cool-lavender"] .nav.scrolled { background-color: rgba(46, 40, 56, 0.85); }
[data-theme="sunset-peach"] .nav.scrolled { background-color: rgba(58, 46, 40, 0.85); }
[data-theme="forest-sage"] .nav.scrolled { background-color: rgba(40, 48, 40, 0.85); }
[data-theme="ocean-blue"] .nav.scrolled { background-color: rgba(40, 46, 56, 0.85); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Language Switcher --- */
.lang-switcher {
  position: relative;
}

.lang-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.lang-btn:hover {
  background: rgba(var(--primary-rgb), 0.12);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 10;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.lang-option:hover {
  background: rgba(var(--primary-rgb), 0.1);
}

.lang-option.active {
  color: var(--accent);
  font-weight: 600;
}

/* --- Theme Switcher --- */
.theme-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
}

.theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.theme-dot:hover {
  transform: scale(1.15);
}

.theme-dot.active {
  border-color: var(--text);
}

.theme-dot[data-theme-id="warm-pastel"] { background: #F0DDD0; }
.theme-dot[data-theme-id="cool-lavender"] { background: #D4C4E8; }
.theme-dot[data-theme-id="sunset-peach"] { background: #F0C8A0; }
.theme-dot[data-theme-id="forest-sage"] { background: #B8D0A8; }
.theme-dot[data-theme-id="ocean-blue"] { background: #A0C8E0; }

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.8;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--background);
  box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.4);
  opacity: 1;
  color: var(--background);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  width: 280px;
  height: 570px;
  background: var(--surface);
  border-radius: 40px;
  border: 3px solid rgba(var(--primary-rgb), 0.15);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--background);
  border-radius: 0 0 18px 18px;
}

.phone-content {
  text-align: center;
  padding: 40px 28px;
}

.phone-illustration {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.phone-affirmation {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  line-height: 1.5;
  font-style: italic;
}

.phone-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
}

.phone-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
}

.phone-dot.active {
  opacity: 1;
  width: 20px;
  border-radius: 3px;
}

/* Floating elements around phone */
.float-widget {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
}

.float-widget-left {
  left: -30px;
  top: 30%;
  animation-delay: -2s;
}

.float-widget-right {
  right: -40px;
  bottom: 25%;
  animation-delay: -4s;
}

.float-streak {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
}

.float-streak .streak-icon {
  font-size: 1.2rem;
}

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

/* --- Features Section --- */
.features {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  color: var(--text);
  opacity: 0.7;
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.7;
  line-height: 1.6;
}

/* --- Pricing Section --- */
.pricing {
  padding: 100px 0;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  position: relative;
  transition: transform 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--background);
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.7;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 1rem;
  opacity: 0.6;
  font-family: var(--font-body);
}

.pricing-trial {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4A48A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* --- FAQ Section --- */
.faq {
  padding: 100px 0;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 20px;
  color: var(--text);
  opacity: 0.7;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.6;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text);
  opacity: 0.6;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.5;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.5;
}

.footer-legal-links a:hover {
  opacity: 0.8;
}

/* --- Legal Pages --- */
.legal-page {
  padding: 120px 0 80px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.legal-content .legal-updated {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.5;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 36px 0 12px;
  font-weight: 700;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.75;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .float-widget {
    display: none;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: 2rem;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .theme-switcher {
    display: none;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
