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

body {
  font-family: 'Inter', sans-serif;
  background: white;
  color: #1f2937;
  line-height: 1.6;
}

/* Layout: header/nav/footer */
header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: fixed;
  width: 100%;
  top: 40px;
  z-index: 1000;
  padding: 1.25rem 2rem;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
}

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

.nav-links a {
  color: #1f2937;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #4f46e5;
}

main { padding-top: 140px; }

.footer {
  background: #f3f4f6;
  padding: 3rem 2rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 60px;
}

.footer > div {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Under construction banner (optional) */
.under-construction-banner {
  background-color: #fff3cd;
  color: #856404;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #ffeeba;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1050;
}

/* Mobile nav */
.mobile-menu-toggle { display: none; }

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 0rem;
    right: 3rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: #1f2937;
    cursor: pointer;
    z-index: 1100;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 100%;
    right: 8%;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }

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

/* Hero */
.hero {
  padding: 140px 2rem 100px;
  text-align: center;
  background-color: #f9fafb;
}

.hero h1 {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 650px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Prevent flex stretch of CTAs */
.cta-buttons .btn { flex: 0 0 auto; }

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}

.btn-primary {
  background-color: #4f46e5;
  color: white;
}

.btn-primary:hover { background-color: #4338ca; }

.btn-secondary {
  background: white;
  color: #4f46e5;
  border: 1px solid #4f46e5;
}

.btn-secondary:hover {
  background-color: #4f46e5;
  color: white;
}

/* Sections & cards */
.section {
  padding: 80px 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  text-align: center;
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 3rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.card p {
  color: #6b7280;
  font-size: 0.95rem;
}

/* Page header */
.page-header {
  text-align: center;
  padding: 80px 2rem 40px;
  background-color: #f9fafb;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.page-header p {
  color: #6b7280;
  font-size: 1rem;
}

/* Features grid */
.features-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #4f46e5;
}

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

.feature-card p {
  font-size: 0.95rem;
  color: #6b7280;
}

/* Timeline (How it works) */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.step {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-left: 3.5rem;
}

.circle {
  width: 40px;
  height: 40px;
  background-color: #4f46e5;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  position: absolute;
  left: 0;
  top: 0;
}

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

.content p {
  font-size: 0.95rem;
  color: #6b7280;
}

@media (max-width: 600px) {
  .timeline::before { left: 20px; }
  .step { padding-left: 2.75rem; }
  .circle {
    width: 32px; height: 32px;
    font-size: 0.875rem; line-height: 32px; left: 0;
  }
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  color: #1f2937;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  color: #6b7280;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px; /* adjust if needed */
  padding: 1rem 1.25rem;
}

/* Signup form bits (scoped) */
.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #1f2937;
  font-size: 1rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #4f46e5;
  outline: none;
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.4);
}

.error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

.help-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.15rem;
  font-style: italic;
}

/* Only signup submit is full width */
#signup-form .btn-primary { width: 100%; }
