/* ============================================================
   MAIA shared styles (used by all pages added in 2026-04 SEO/GEO
   structural plan). Existing pages (index, demos, signup, privacy,
   terms, baa) keep their inline styles to avoid mid-flight refactor.
   ============================================================ */

:root {
  --color-cream: #FDF8F0;
  --color-cream-dark: #F5EDE0;
  --color-sage: #22311d;
  --color-sage-light: #3a5233;
  --color-sage-dark: #1a2516;
  --color-charcoal: #2D3436;
  --color-warm-gray: #5D524B;
  --color-gold: #C4A574;
  --color-gold-light: #E8D5B5;
  --color-white: #FFFFFF;
  --color-black: #1A1A1A;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: var(--color-sage); text-decoration: underline; text-decoration-color: rgba(58, 82, 51, 0.3); }
a:hover { text-decoration-color: var(--color-sage); }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 40px);
  max-width: 1200px;
  pointer-events: none;
}

.nav-inner {
  background: var(--color-cream);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 8px;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
  box-shadow: 0 4px 60px rgba(93, 82, 75, 0.15);
  border: 1px solid rgba(107, 143, 113, 0.1);
}

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-img { width: 42px; height: auto; object-fit: contain; }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--color-warm-gray);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--color-sage-dark); }

.nav-cta {
  background: var(--color-sage);
  color: var(--color-white);
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-out-expo);
}
.nav-cta:hover {
  background: var(--color-sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107, 143, 113, 0.3);
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 10rem var(--space-md) var(--space-lg);
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
  text-align: center;
}

.page-header-inner { max-width: 820px; margin: 0 auto; }

.page-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 14px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--color-charcoal);
  margin-bottom: 22px;
}
.page-title em { font-style: italic; color: var(--color-sage); }

.page-lede {
  font-size: 1.1rem;
  color: var(--color-warm-gray);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}

/* ===== CONTENT SECTIONS ===== */
.section {
  padding: var(--space-lg) var(--space-md);
  background: var(--color-white);
}
.section.alt { background: var(--color-cream); }

.section-inner { max-width: 820px; margin: 0 auto; }
.section-inner.wide { max-width: 1100px; }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--color-charcoal);
  margin-bottom: 18px;
  line-height: 1.25;
}

.section h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-sage-dark);
  margin: 22px 0 8px;
}

.section p { margin-bottom: 14px; color: var(--color-charcoal); }
.section p + p { margin-top: 0; }

.section ul, .section ol { margin: 12px 0 18px 22px; }
.section li { margin-bottom: 8px; line-height: 1.65; }

/* ===== STEP LIST (How it works) ===== */
.steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 18px 18px 18px 64px;
  background: var(--color-cream);
  border-left: 3px solid var(--color-sage-light);
  border-radius: 6px;
  margin-bottom: 12px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--color-sage);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.steps li strong { display: block; color: var(--color-sage-dark); margin-bottom: 4px; }

/* ===== FAQ ===== */
.faq-list { margin-top: 18px; }
.faq-item {
  border-top: 1px solid rgba(107, 143, 113, 0.18);
  padding: 18px 4px;
}
.faq-item:last-child { border-bottom: 1px solid rgba(107, 143, 113, 0.18); }
.faq-item h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-sage-dark);
  margin: 0 0 8px;
}
.faq-item p { color: var(--color-warm-gray); font-size: 0.95rem; line-height: 1.65; }

/* ===== INTEGRATIONS / TAG GRID ===== */
.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}
.tag-grid .tag {
  background: var(--color-cream);
  border: 1px solid rgba(107, 143, 113, 0.18);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
  font-weight: 500;
  color: var(--color-sage-dark);
}

/* ===== RELATED CAPABILITIES CARD GRID ===== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.related-card {
  background: var(--color-cream);
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  border: 1px solid rgba(107, 143, 113, 0.15);
  transition: all 0.3s var(--ease-out-expo);
  display: block;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(107, 143, 113, 0.12);
  border-color: var(--color-sage-light);
}
.related-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin: 0 0 8px;
}
.related-card p {
  color: var(--color-warm-gray);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* ===== CTA ===== */
.btn {
  display: inline-block;
  background: var(--color-sage);
  color: var(--color-white);
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-out-expo);
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--color-sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 49, 29, 0.25);
}
.btn-secondary {
  background: transparent;
  color: var(--color-sage-dark);
  border: 1.5px solid var(--color-sage);
}
.btn-secondary:hover { background: var(--color-sage); color: var(--color-white); }

.cta-section {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #1a2a1e 100%);
  color: var(--color-white);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--color-white);
}
.cta-section p { font-size: 1.05rem; opacity: 0.85; max-width: 560px; margin: 0 auto 24px; }
.cta-section .btn { background: var(--color-cream); color: var(--color-charcoal); }
.cta-section .btn:hover { background: var(--color-white); }

/* ===== FOOTER ===== */
footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-lg) var(--space-md);
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-white); }
.footer-logo-img { width: 36px; height: auto; object-fit: contain; }
.footer-logo span { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }
.footer-tagline { font-size: 0.95rem; opacity: 0.7; line-height: 1.6; max-width: 300px; }
.footer-social { display: flex; gap: 1rem; margin-top: 0.5rem; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer-social a:hover { background: var(--color-sage); color: var(--color-white); }
.footer-social svg { width: 18px; height: 18px; }

.footer-column h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--color-sage-light);
}
.footer-column ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; padding: 0; }
.footer-column a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.footer-column a:hover { color: var(--color-white); }

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.6;
}
.footer-bottom p { margin: 0; }

/* ===== TABLE (for pricing, security pages) ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.95rem;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(107, 143, 113, 0.18);
}
.data-table th {
  font-weight: 600;
  color: var(--color-sage-dark);
  background: var(--color-cream);
}
.data-table tr:hover td { background: rgba(107, 143, 113, 0.04); }

/* ===== UTIL ===== */
.center { text-align: center; }
.muted { color: var(--color-warm-gray); }
.lede { font-size: 1.1rem; line-height: 1.7; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-content { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .nav { top: 10px; width: calc(100% - 20px); }
  .nav-inner { padding: 14px 20px; }
  .nav-logo-img { width: 32px; }
  .nav-links { display: none; }
  .nav-cta { padding: 10px 18px; font-size: 0.85rem; }

  .page-header { padding: 8rem var(--space-sm) var(--space-md); }
  .section { padding: var(--space-md) var(--space-sm); }
  .cta-section { padding: var(--space-md) var(--space-sm); }
  footer { padding: 2.5rem 1.25rem; }

  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { text-align: center; align-items: center; }
  .footer-tagline { max-width: 100%; }
  .footer-social { justify-content: center; }
  .footer-column { text-align: center; }
  .footer-column ul { align-items: center; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
