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

/* Variables matching app colors */
:root {
  --primary: #4A5568;
  --primary-dark: #2D3748;
  --secondary: #E8E0D8;
  --background: #F7F5F2;
  --surface: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #7C7570;
  --text-tertiary: #A39E99;
  --border: #DDD8D2;
  --border-light: #EDEAE6;
  --accent: #5B7FB5;
  --danger: #C9503E;
  --success: #5CA07A;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.6;
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo img {
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Hero */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Features */
.features {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 56px;
}

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

.feature {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border-light);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pricing */
.pricing {
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 48px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pricing-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 36px;
  border: 1px solid var(--border-light);
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.pricing-card .price {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pricing-card .price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.price-annual {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.pricing-card li {
  font-size: 15px;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.pricing-card-premium {
  border-color: var(--primary);
  position: relative;
}

.pricing-card-premium li::before {
  background: var(--primary);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-column a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Legal pages */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.legal h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 4px;
}

.legal-date {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal a {
  color: var(--primary);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .hero {
    padding: 60px 20px 40px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features h2,
  .pricing h2 {
    font-size: 28px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    gap: 32px;
  }
}
