/* Mobile-first base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Fustat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
  background: #fff;
}

/* Header */
.header {
  padding: 3rem 1.5rem;
  text-align: center;
}

.hero-headline-highlight {
  font-weight: 400;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: #4f1e90;
  text-decoration: none;
  text-align: center;
}

/* Hero */
.hero {
  padding: 0 1.9rem 2.5rem;
  text-align: center;
}

.hero-headline {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
}

.phone-wrapper {
  margin: 0 auto 1.5rem;
  max-width: 280px;
}

.phone-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2rem;
  object-fit: contain;
}

.hero-description {
  margin: 0;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  font-weight: 400;
  color: #000;
}

/* CTA */
.cta {
  padding: 0.5rem 1.5rem 3rem;
  text-align: center;
}

.cta-heading {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 400;
  color: #000;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 360px;
  margin: 0 auto;
  border: 1px solid #000;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.cta-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: #000;
  background: #fff;
  border: none;
  outline: none;
}

.cta-input::placeholder {
  color: #666;
}

.cta-submit {
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: #000;
  background: #fff;
  border: none;
  border-left: 1px solid #000;
  cursor: pointer;
  white-space: nowrap;
}

.cta-submit:hover {
  background: #f5f5f5;
}

.cta-submit:active {
  background: #eee;
}

.cta-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  text-align: center;
  border-radius: 0.5rem;
  display: none;
}

.form-message:not(:empty) {
  display: block;
}

.form-message-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-copyright {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: #666;
}

.footer-contact {
  margin: 0;
}

.footer-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: #4f1e90;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Tablet and up */
@media (min-width: 600px) {
  .hero-headline {
    font-size: 2.25rem;
  }

  .phone-wrapper {
    max-width: 320px;
  }

  .hero-description {
    max-width: 42ch;
  }
}

@media (min-width: 900px) {
  .hero-headline {
    font-size: 2.75rem;
  }

  .phone-wrapper {
    max-width: 360px;
  }
}
