/* Marketing Pages Styles */
/* Mobile-first, minimal styling for fast loading and easy maintenance */

/* Marketing Navigation */
.marketing-nav {
  background-color: var(--dark-gray);
  border-bottom: 1px solid var(--medium-gray);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.marketing-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.marketing-nav-logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--light-gray);
  text-decoration: none;
}

.marketing-nav-logo:hover {
  color: var(--primary-color-light);
}

.marketing-nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.marketing-nav-link {
  color: var(--light-gray);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.marketing-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-color-light);
}

.marketing-nav-login {
  background-color: var(--primary-color);
  color: white;
}

.marketing-nav-login:hover {
  background-color: var(--primary-color-dark);
  color: white;
}

/* Marketing Page Layout */
.markdown-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.markdown-page h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  line-height: 1.2;
  color: var(--light-gray);
}

.markdown-page h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color-light);
}

.markdown-page h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--light-gray);
}

.markdown-page p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.markdown-page strong {
  color: var(--primary-color-light);
  font-weight: bold;
}

.markdown-page a {
  color: var(--primary-color-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(105, 191, 247, 0.3);
  transition: all 0.2s ease;
}

.markdown-page a:hover {
  color: white;
  border-bottom-color: var(--primary-color-light);
}

.markdown-page a:visited {
  color: var(--primary-color-light);
}

.markdown-page hr {
  margin: 3rem 0;
  border: none;
  border-top: 1px solid var(--medium-gray);
}

/* Email Capture Form */
.email-capture-form {
  background-color: rgba(0, 123, 255, 0.05);
  border: 1px solid var(--primary-color);
  border-radius: 0.5rem;
  padding: 2rem;
  margin: 2rem 0;
}

.email-capture-form .form-field {
  margin-bottom: 1rem;
}

.email-capture-form .form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--light-gray);
}

.email-capture-form .form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--medium-gray);
  border-radius: 0.25rem;
  font-size: 1rem;
  min-height: 44px;
  background-color: white;
  color: var(--dark-gray);
}

.email-capture-form .form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.email-capture-form .form-actions {
  margin-top: 1.5rem;
}

.email-capture-form .btn-primary {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 0.2s;
}

.email-capture-form .btn-primary:hover {
  background-color: var(--primary-color-dark);
}

.email-capture-form .btn-primary:active {
  transform: scale(0.98);
}

/* Form Messages */
.form-message {
  padding: 1rem;
  border-radius: 0.25rem;
  margin-top: 1rem;
}

.form-message.hidden {
  display: none;
}

.form-message-success {
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid var(--success-color);
  color: var(--success-color);
}

.form-message-error {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid var(--danger-color);
  color: var(--danger-color);
}

/* Responsive Design - Desktop */
@media (min-width: 768px) {
  .markdown-page {
    padding: 3rem 2rem;
  }

  .markdown-page h1 {
    font-size: 2.5rem;
  }

  .markdown-page h2 {
    font-size: 1.75rem;
  }

  .email-capture-form {
    padding: 2.5rem;
  }

  .email-capture-form .btn-primary {
    width: auto;
    min-width: 200px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  /* Dark mode is the default for the app, but we ensure consistency */
  .markdown-page {
    background-color: var(--dark-gray);
    color: var(--light-gray);
  }

  .email-capture-form .form-input {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: var(--medium-gray);
  }
}

/* Light Mode Override (if user prefers light) */
@media (prefers-color-scheme: light) {
  body {
    background-color: white;
    color: var(--dark-gray);
  }

  .markdown-page h1,
  .markdown-page h3 {
    color: var(--dark-gray);
  }

  .markdown-page h2 {
    color: var(--primary-color);
  }

  .marketing-nav {
    background-color: white;
    border-bottom: 1px solid #e5e5e5;
  }

  .marketing-nav-logo,
  .marketing-nav-link {
    color: var(--dark-gray);
  }

  .marketing-nav-logo:hover,
  .marketing-nav-link:hover {
    color: var(--primary-color);
  }

  .marketing-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .email-capture-form .form-label {
    color: var(--dark-gray);
  }

  .email-capture-form .form-input {
    background-color: white;
  }
}

/* Accessibility: Focus visible for keyboard navigation */
.marketing-nav-link:focus-visible,
.email-capture-form .form-input:focus-visible,
.email-capture-form .btn-primary:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles - hide navigation */
@media print {
  .marketing-nav {
    display: none;
  }

  .email-capture-form {
    display: none;
  }
}
