/* Variables */
:root {
  --green: #2D5A4A;
  --cream: #F5F1EB;
  --tan: #EDE9E1;
  --gray: #6b6b6b;
  --dark: #1a1a1a;
  --serif: 'EB Garamond', Georgia, serif;
}

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

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

/* Typography scale */
.body-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray);
}

/* Pages */
.page {
  min-height: 100vh;
}

.page.hidden {
  display: none;
}

/* Utilities */
.bg-tan {
  background-color: var(--tan);
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dark);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 1.125rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

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

.btn-secondary {
  background-color: var(--cream);
  color: var(--green);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Hero Section */
.hero {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 1.5rem 6rem;
  }
}

.hero-title {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 2.5rem;
}

/* How It Works Section */
.how-it-works {
  padding: 5rem 1.5rem;
}

.section-title {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 1.25rem;
  color: var(--dark);
}

.how-it-works .section-title {
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  gap: 3rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  text-align: center;
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.feature-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray);
}

/* Recap Section */
.recap-section {
  padding: 5rem 1.5rem;
  background-color: var(--cream);
}

.recap-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .recap-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.recap-text {
  text-align: center;
}

@media (min-width: 768px) {
  .recap-text {
    text-align: left;
  }
}

.section-title-left {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--dark);
}

.recap-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 1rem;
}

.recap-card {
  background-color: var(--tan);
  border-radius: 1rem;
  padding: 1.25rem;
  max-width: 20rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .recap-card {
    margin: 0 48px 0 auto;
  }
}

.recap-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .recap-tabs {
    justify-content: flex-start;
  }
}

.recap-tab {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  border: 1px solid var(--green);
  color: var(--green);
}

.recap-tab.active {
  background-color: var(--green);
  color: var(--cream);
  border-color: var(--green);
}

.recap-content {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.recap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.recap-date {
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--dark);
}

.recap-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--tan);
  color: var(--green);
  border-radius: 9999px;
}

.recap-summary {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray);
}

.recap-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.recap-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--tan);
  color: var(--green);
  border-radius: 9999px;
}

/* Patterns Section */
.patterns-section {
  padding: 5rem 1.5rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray);
  max-width: 42rem;
  margin: 0 auto 0.5rem;
}

.section-subtitle:last-child {
  margin-bottom: 0;
}

/* Brains Section */
.brains-section {
  padding: 5rem 1.5rem;
  text-align: center;
  background-color: var(--cream);
}

/* CTA Section */
.cta-section {
  padding: 5rem 1.5rem;
  text-align: center;
  background-color: var(--green);
}

.cta-title {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

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

.cta-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #B8CFC5;
  margin-bottom: 2rem;
}

/* Footer */
footer {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  background-color: var(--cream);
}

@media (min-width: 768px) {
  footer {
    flex-direction: row;
  }
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dark);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-links button,
.footer-links a {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  text-decoration: none;
  font-size: inherit;
}

.footer-links button:hover,
.footer-links a:hover {
  text-decoration: underline;
}

/* Legal Pages */
.legal-page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--green);
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.back-btn:hover {
  text-decoration: underline;
}

.legal-title {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--dark);
}

.legal-date {
  color: var(--gray);
  margin-bottom: 1rem;
}

.legal-text {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.legal-heading {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.legal-list {
  color: var(--gray);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-list li {
  margin-bottom: 0.5rem;
}
