/* === Hero === */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 1rem;
}

.hero .subheadline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

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

/* === Feature Grid === */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 4rem 0;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-card .icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

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

/* === Page Sections === */
.page-intro {
  padding: 4rem 0 2rem;
  text-align: center;
}

.page-intro h1 {
  margin-bottom: 0.75rem;
}

.page-intro .subheadline {
  color: #c7dbee;
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

.content-section {
  padding: 2rem 0 4rem;
}

.content-section h2 {
  margin-bottom: 1rem;
}

.content-section p {
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* === Product features list === */
.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.feature-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-list h3 {
  margin-bottom: 0.4rem;
}

.feature-list p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* === Pricing === */
.pricing-card {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 400px;
  margin: 2rem auto 0;
  text-align: center;
}

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

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

/* === About === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.mission-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.mission-box h2 {
  margin-bottom: 0.75rem;
}

.mission-box p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* === Contact === */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 500px;
  margin: 2rem auto 0;
  text-align: center;
}

.contact-card .contact-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-card .email {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  word-break: break-all;
}

.contact-card p {
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

/* === CTA Section === */
.cta-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem auto 1rem;
}

.cta-section h2 {
  margin-bottom: 0.5rem;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* === Dashboard preview image === */
.dashboard-preview {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 2rem auto 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* === Legal Pages (Privacy / Terms) === */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.legal-content p {
  color: #c7dbee;
  line-height: 1.75;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.legal-content ul {
  color: #c7dbee;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.75;
  overflow-wrap: break-word;
  word-break: break-word;
}

.legal-content ul li {
  margin-bottom: 0.35rem;
}

.legal-content strong {
  color: var(--text);
}

/* === FAQ Accordion === */
.faq-category {
  margin-bottom: 2rem;
}

.faq-category h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  user-select: none;
}

.faq-question .faq-chevron {
  font-size: 0.85rem;
  color: var(--accent);
  transition: transform 0.25s ease;
  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, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer p {
  color: #c7dbee;
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 0 1.25rem 1rem;
  margin: 0;
}

/* === FAQ More Link === */
.faq-more-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.legal-content .faq-more-link {
  max-width: none;
}

/* === Mobile Nav === */
@media (max-width: 768px) {
  .nav-auth {
    display: flex;
    order: -1; /* CTA left of hamburger */
  }

  .hamburger {
    display: flex;
    flex-shrink: 0;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    max-height: 400px;
    padding: 1rem 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1.25rem;
  }

  .nav-user-trigger {
    font-size: 0.85rem;
    padding: 0.45rem 0.8rem;
  }
}

/* === Responsive Grids === */
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 7rem 0 5rem;
  }
}

/* === Mobile: Public Pages === */
@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 0.7rem;
  }

  .page-intro {
    padding: 2.5rem 0 1.5rem;
  }

  .legal-content {
    padding: 0 0.5rem;
  }

  .legal-content ul {
    padding-left: 1rem;
  }

  .legal-content h2 {
    font-size: 1.2rem;
  }

  .legal-content h3 {
    font-size: 1rem;
  }

  .faq-question {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  .faq-answer p {
    padding: 0 1rem 0.85rem;
    font-size: 0.9rem;
  }

  .feature-list li {
    padding: 1.25rem;
  }

  .pricing-card {
    padding: 2rem 1.25rem;
  }

  .contact-card {
    padding: 2rem 1.25rem;
  }

  .mission-box {
    padding: 1.5rem;
  }

  .cta-section {
    padding: 2rem 1.25rem;
  }
}
