/**
 * Chamomile Marketing Pages — Shared Styles
 * Copyright 2024-2026 Chamomile Platform. All Rights Reserved.
 *
 * Design system: Outfit + JetBrains Mono fonts, consistent with dashboard.
 * Mobile-first, accessible, performant (no frameworks).
 */

/* ========================================================================= */
/* RESET & BASE                                                              */
/* ========================================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a2e;
  background: #fafbfc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #16a34a;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #15803d;
}

a:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================================================= */
/* TYPOGRAPHY                                                                */
/* ========================================================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: #1a1a2e;
}

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: #4a5568;
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875em;
  background: #f0f0f5;
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* ========================================================================= */
/* LAYOUT                                                                    */
/* ========================================================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 800px;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: #f0f0f5;
}

/* ========================================================================= */
/* NAVIGATION                                                                */
/* ========================================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8e8ef;
  padding: 0.75rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1a1a2e;
  text-decoration: none;
}

.nav__logo:hover {
  color: #1a1a2e;
}

.nav__logo-icon {
  font-size: 1.5rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a5568;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: #16a34a;
}

.nav__link--cta {
  background: #16a34a;
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
}

.nav__link--cta:hover {
  background: #15803d;
  color: #fff;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #1a1a2e;
  padding: 0.25rem;
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e8e8ef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  .nav__links--open { display: flex; }
}

/* ========================================================================= */
/* HERO                                                                      */
/* ========================================================================= */

.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  background: linear-gradient(135deg, #fafbfc 0%, #f0f0f5 50%, #ecfccb 100%);
}

.hero__badge {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: #4a5568;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero__title { font-size: 2.25rem; }
  .hero__subtitle { font-size: 1.1rem; }
  .hero { padding: 4rem 0 3rem; }
}

/* ========================================================================= */
/* BUTTONS                                                                   */
/* ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

.btn--primary {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.btn--primary:hover {
  background: #15803d;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.btn--secondary {
  background: #fff;
  color: #1a1a2e;
  border: 1.5px solid #d1d5db;
}

.btn--secondary:hover {
  border-color: #16a34a;
  color: #16a34a;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: #16a34a;
  padding: 0.5rem 1rem;
}

.btn--ghost:hover {
  background: rgba(22, 163, 74, 0.08);
}

/* ========================================================================= */
/* FEATURE GRID                                                              */
/* ========================================================================= */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: #fff;
  border: 1px solid #e8e8ef;
  border-radius: 14px;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card__desc {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ========================================================================= */
/* PRICING                                                                   */
/* ========================================================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: start;
}

.pricing-card {
  background: #fff;
  border: 1.5px solid #e8e8ef;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.pricing-card--featured {
  border-color: #16a34a;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.15);
}

.pricing-card__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: #16a34a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 400;
  color: #6b7280;
}

.pricing-card__desc {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-card__features li {
  font-size: 0.9rem;
  color: #4a5568;
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-card__features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}

.pricing-card__cta {
  display: block;
  width: 100%;
  text-align: center;
}

/* ========================================================================= */
/* STATUS INDICATORS                                                         */
/* ========================================================================= */

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.status-card {
  background: #fff;
  border: 1px solid #e8e8ef;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.status-dot--ok {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.status-dot--error {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.status-dot--loading {
  background: #f59e0b;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-card__info {
  flex: 1;
}

.status-card__label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.status-card__detail {
  font-size: 0.85rem;
  color: #6b7280;
}

/* ========================================================================= */
/* LEGAL / PROSE                                                             */
/* ========================================================================= */

.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h1 {
  margin-bottom: 0.5rem;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  border-bottom: 1px solid #e8e8ef;
  padding-bottom: 0.5rem;
}

.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.prose p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.prose ul, .prose ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.35rem;
  color: #4a5568;
  line-height: 1.6;
}

.prose strong {
  color: #1a1a2e;
}

.prose__date {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 2.5rem;
}

/* ========================================================================= */
/* FOOTER                                                                    */
/* ========================================================================= */

.footer {
  background: #1a1a2e;
  color: #a0a3b1;
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer__brand {
  max-width: 300px;
}

.footer__brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer__brand-desc {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer__col-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: 0.4rem;
}

.footer__col a {
  font-size: 0.875rem;
  color: #a0a3b1;
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ========================================================================= */
/* UTILITIES                                                                 */
/* ========================================================================= */

.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, #16a34a, #65a30d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================================================= */
/* RESPONSIVE                                                                */
/* ========================================================================= */

@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 3rem 0; }
  .features { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .footer__links { justify-content: center; }
}
