/* style.css */
:root {
  --bg-color: #FDFCF9;
  --text-primary: #1C3325;
  --text-secondary: #4A5D53;
  --accent-sage: #9AB2A4;
  --accent-sage-light: #E0E8E3;
  --button-bg: #1C3325;
  --button-text: #FFFFFF;
  --radius-lg: 24px;
  --radius-md: 16px;
  --spacing-section: 120px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--accent-sage);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(253, 252, 249, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(28, 51, 37, 0.05);
}

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

.logo {
  font-family: ui-serif, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--button-bg);
  color: var(--button-text);
}

.btn-primary:hover {
  color: var(--button-text);
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-primary[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background-color: var(--accent-sage-light);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--accent-sage);
  color: var(--text-primary);
}

/* Sections */
section {
  padding: var(--spacing-section) 0;
}

/* Hero */
.hero {
  padding-top: calc(var(--spacing-section) + 80px);
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero .container {
  max-width: 800px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-app-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  box-shadow: 0 12px 40px rgba(28, 51, 37, 0.18);
  margin-bottom: 2rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* How It Works & Benefits */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.card {
  background: #FFFFFF;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(28, 51, 37, 0.03);
  text-align: left;
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--accent-sage-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* Support / FAQ */
.faq-container {
  max-width: 800px;
  margin: 4rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--accent-sage-light);
  padding: 1.5rem 0;
}

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

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent-sage);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
  max-height: 500px;
  margin-top: 1rem;
}

/* Always-visible FAQ variant */
.faq-item.faq-open {
  padding: 1.75rem 0;
}

.faq-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.faq-item.faq-open p:last-child {
  margin-bottom: 0;
}

/* Footer */
footer {
  background-color: var(--text-primary);
  color: var(--bg-color);
  padding: 4rem 0 2rem;
  text-align: center;
}

footer a {
  color: var(--bg-color);
  opacity: 0.8;
}

footer a:hover {
  opacity: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.copyright {
  opacity: 0.6;
  font-size: 0.875rem;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Hamburger button - hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --spacing-section: 80px;
  }

  .hero-actions {
    flex-direction: column;
  }

  h1 {
    font-size: 2.5rem;
  }

  /* Benefits 2-col grid collapses to 1 col on mobile */
  #benefits .grid {
    grid-template-columns: 1fr !important;
  }

  /* Show hamburger, hide inline links */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(253, 252, 249, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid var(--accent-sage-light);
    box-shadow: 0 8px 20px rgba(28, 51, 37, 0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--accent-sage-light);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  /* Animated hamburger → X when open */
  .nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

