/* ============================
   Stay Active — Design System
   ============================ */

:root {
  /* Colors — warm coffee palette */
  --bg:          #E8E6DC;
  --bg-card:     #F2F0E8;
  --bg-dark:     #2C2418;
  --bg-dark-alt: #3A3025;
  --accent:      #1B5E36;
  --cta:         #2D8C4E;
  --cta-hover:   #246F3E;
  --green:       #2D8C4E;
  --text:        #2C2418;
  --text-light:  #F2F0E8;
  --text-muted:  #7A6F5F;
  --border:      #D5D1C4;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, monospace;

  /* Spacing */
  --section-pad: 6rem 1.5rem;
  --max-w: 1100px;
  --radius: 12px;
  --radius-sm: 8px;
}

/* ============================
   Reset & Base
   ============================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

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

/* ============================
   Navigation
   ============================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(232, 230, 220, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.nav-logo img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}

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

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

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

.nav-cta {
  background: var(--cta);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--cta-hover); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================
   Hero
   ============================ */

.hero {
  padding: 10rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero h1 .green {
  color: var(--green);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: inline-block;
  background: var(--cta);
  color: #fff;
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  transition: background 0.2s, transform 0.15s;
  border: none;
}

.hero-cta:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

.hero-sub {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Abstract decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  z-index: 0;
}

.hero-blob--1 {
  width: 400px;
  height: 400px;
  background: var(--cta);
  top: -100px;
  right: -100px;
}

.hero-blob--2 {
  width: 300px;
  height: 300px;
  background: var(--green);
  bottom: -50px;
  left: -80px;
}

.hero-blob--3 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
}

/* ============================
   Features
   ============================ */

.features {
  padding: var(--section-pad);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44, 36, 24, 0.06);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================
   Steps
   ============================ */

.steps {
  padding: var(--section-pad);
  background: var(--bg-card);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================
   Pricing
   ============================ */

.pricing {
  padding: var(--section-pad);
}

.pricing-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

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

.pricing-card-alt {
  background: var(--bg-dark-alt);
  border: 2px solid var(--cta);
}

.pricing-badge {
  display: inline-block;
  background: var(--cta);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.7;
}

.pricing-sub {
  color: rgba(242, 240, 232, 0.6);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}

.pricing-cta {
  display: block;
  width: 100%;
  background: var(--cta);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  transition: background 0.2s;
}

.pricing-cta:hover { background: var(--cta-hover); }

.pricing-note {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(242, 240, 232, 0.5);
}

/* ============================
   FAQ
   ============================ */

.faq {
  padding: var(--section-pad);
  background: var(--bg-card);
}

.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: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.faq-question:hover { color: var(--accent); }

.faq-chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

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

.faq-answer-inner {
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================
   Footer
   ============================ */

.footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-brand strong {
  font-size: 1rem;
}

.footer-brand span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

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

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

.footer-copy {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

/* ============================
   Responsive
   ============================ */

@media (max-width: 768px) {
  .hero { padding: 8rem 1.5rem 4rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1rem; }

  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
  .pricing-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1rem;
  }

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

  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }

  .section-header h2 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.85rem; }
  .pricing-card { padding: 1.75rem; }
  .pricing-price { font-size: 2.5rem; }
}
