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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  padding: 5rem 0;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: #111827;
  margin-bottom: 1.25rem;
}

.hero-subhead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-visual {
  display: flex;
  gap: 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
  justify-content: center;
  align-items: flex-start;
}

/* Visual mockups */
.visual-card {
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
  overflow: hidden;
}

.visual-browser {
  flex: 1;
  min-height: 14rem;
  max-width: 20rem;
}

.visual-phone {
  flex: 0 0 10rem;
  min-height: 18rem;
  max-width: 10rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: #f9fafb;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #111827;
}

.section-subhead {
  font-size: 1.0625rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111827;
}

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

/* Features */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature {
  padding: 2rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #111827;
}

.feature p {
  color: #6b7280;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Examples */
.examples {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.example-card {
  border-radius: 0.75rem;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.example-visual {
  height: 12rem;
  background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
}

.example-caption {
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.5;
}

/* FAQ */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-list details {
  border-bottom: 1px solid #e5e7eb;
  padding: 1.25rem 0;
}

.faq-list details:last-child {
  border-bottom: none;
}

.faq-list summary {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: #4f46e5;
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list p {
  margin-top: 0.875rem;
  padding-left: 0;
  color: #6b7280;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Form */
.lead-form {
  max-width: 32rem;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.lead-form textarea {
  resize: vertical;
  min-height: 6rem;
}

[data-form-status] {
  min-height: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

[data-form-status][data-kind="success"] {
  color: #059669;
}

[data-form-status][data-kind="error"] {
  color: #dc2626;
}

[data-form-status][data-kind="pending"] {
  color: #4f46e5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

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

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: #4f46e5;
  border-color: #4f46e5;
}

.btn-secondary:hover {
  background: rgba(79, 70, 229, 0.05);
}

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

.btn-block {
  width: 100%;
  display: block;
}

/* Footer */
.footer {
  background-color: #111827;
  color: #9ca3af;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: #ffffff;
}

.footer-links {
  margin-top: 0.5rem;
}

/* Tablet breakpoint */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }

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

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

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

/* Desktop breakpoint */
@media (min-width: 1024px) {
  .hero {
    padding: 6rem 0;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .examples {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: 5.5rem 0;
  }
}
