/* ──────────────────────────────────────────────────────────
   Maia — Marketing site
   Extends colors_and_type.css with marketing-only tokens:
   bigger type scale, section/grid helpers, button variants.
   ────────────────────────────────────────────────────────── */

:root {
  /* Marketing display scale (bigger than the product UI) */
  --m-display:    72px;    /* hero headline */
  --m-display-sm: 56px;    /* section headline */
  --m-h2:         40px;
  --m-h3:         28px;
  --m-body-lg:    19px;
  --m-body:       16px;
  --m-eyebrow:    13px;

  /* Container */
  --m-max:        1240px;
  --m-pad-x:      32px;

  /* Section rhythm */
  --m-section-y:  120px;
  --m-section-y-sm: 80px;

  /* Soft tints derived from brand */
  --m-mint-tint:  rgba(16, 207, 149, 0.08);
  --m-cyan-tint:  rgba(65, 200, 229, 0.10);
  --m-blue-tint:  rgba(26, 115, 232, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--white);
  color: var(--warm-800);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ──────  Container  ────── */
.m-container {
  max-width: var(--m-max);
  margin: 0 auto;
  padding-left: var(--m-pad-x);
  padding-right: var(--m-pad-x);
}

.m-section {
  padding-top: var(--m-section-y);
  padding-bottom: var(--m-section-y);
}
.m-section-sm {
  padding-top: var(--m-section-y-sm);
  padding-bottom: var(--m-section-y-sm);
}

/* ──────  Typography  ────── */
.m-eyebrow {
  font-size: var(--m-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
}

.m-display {
  font-size: var(--m-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--warm-1000);
  margin: 0;
  text-wrap: balance;
}
.m-display-sm {
  font-size: var(--m-display-sm);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--warm-1000);
  margin: 0;
  text-wrap: balance;
}
.m-h2 {
  font-size: var(--m-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--warm-1000);
  margin: 0;
  text-wrap: balance;
}
.m-h3 {
  font-size: var(--m-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--warm-1000);
  margin: 0;
}

.m-body-lg {
  font-size: var(--m-body-lg);
  font-weight: 400;
  line-height: 1.5;
  color: var(--warm-600);
  margin: 0;
  text-wrap: pretty;
}
.m-body {
  font-size: var(--m-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--warm-600);
  margin: 0;
  text-wrap: pretty;
}

.m-gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ──────  Buttons  ────── */
.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color 140ms ease-out, box-shadow 140ms ease-out, color 140ms ease-out, transform 140ms ease-out;
  white-space: nowrap;
}
.m-btn-primary {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(16,24,40,0.08), 0 0 0 1px rgba(26,115,232,0);
}
.m-btn-primary:hover {
  background: #1567D3;
  box-shadow: 0 6px 16px rgba(26,115,232,0.28);
}
.m-btn-secondary {
  background: var(--white);
  color: var(--warm-800);
  border: 1px solid var(--warm-200);
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
.m-btn-secondary:hover {
  background: var(--warm-75);
  border-color: var(--warm-300);
}
.m-btn-ghost {
  background: transparent;
  color: var(--warm-800);
}
.m-btn-ghost:hover { background: var(--warm-100); }

.m-btn-lg { height: 56px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.m-btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; }

.m-btn-on-dark {
  background: var(--white);
  color: var(--warm-1000);
}
.m-btn-on-dark:hover { background: #f0f0f0; }

/* ──────  Header  ────── */
.m-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(238, 238, 238, 0.8);
}
.m-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.m-header-logo { height: 22px; display: block; }
.m-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.m-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--warm-800);
  text-decoration: none;
  transition: background-color 120ms ease-out;
}
.m-nav a:hover { background: var(--warm-100); text-decoration: none; }
.m-nav a.is-active { color: var(--blue-500); }

.m-header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ──────  Footer  ────── */
.m-footer {
  background: var(--warm-1000);
  color: var(--warm-300);
  padding: 80px 0 40px;
}
.m-footer .m-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.m-footer h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}
.m-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.m-footer a {
  color: var(--warm-300);
  font-size: 14px;
  text-decoration: none;
  transition: color 120ms ease-out;
}
.m-footer a:hover { color: var(--white); text-decoration: none; }
.m-footer-tag {
  font-size: 14px;
  line-height: 1.5;
  color: var(--warm-300);
  max-width: 320px;
  margin: 16px 0 24px;
}
.m-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 13px;
  color: var(--warm-500);
}
.m-footer-bottom a { font-size: 13px; color: var(--warm-500); }
.m-footer-socials {
  display: flex; gap: 8px;
}
.m-footer-socials a {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
}
.m-footer-socials a:hover { background: rgba(255,255,255,0.12); }

/* ──────  Reveal animation (subtle)  ────── */
.m-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}
.m-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ──────  Brand glow / chrome accents  ────── */
.m-glow {
  position: absolute;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 0;
}

/* ──────  Dot status (for use in mockups inline)  ────── */
.m-dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.m-dot.done { background: var(--status-done); }
.m-dot.late { background: var(--status-late); }
.m-dot.sent { background: var(--status-sent); }

/* ──────  Tag pill (light)  ────── */
.m-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--warm-800);
  background: var(--warm-75);
  border: 1px solid var(--warm-100);
}
.m-tag .mdi { font-size: 14px; }

/* ──────  Hero pill (small badge above headline)  ────── */
.m-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--warm-100);
  font-size: 13px;
  color: var(--warm-800);
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}
.m-hero-pill-dot {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--brand-gradient);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white);
}
.m-hero-pill-dot .mdi { font-size: 14px; }

/* ──────  Card (white surface)  ────── */
.m-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--warm-100);
  box-shadow: var(--shadow-xs);
}
.m-card-elevated {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 12px 40px rgba(16,24,40,0.08);
}

/* ──────  Section heading block (eyebrow + headline + sub)  ────── */
.m-sec-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.m-sec-head.left {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

/* ──────  Specialty chip cluster (used a few places)  ────── */
.m-chip-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}

/* ──────  Responsive  ────── */
@media (max-width: 980px) {
  :root {
    --m-display:    44px;
    --m-display-sm: 36px;
    --m-h2:         28px;
    --m-h3:         22px;
    --m-body-lg:    17px;
    --m-section-y:  72px;
    --m-section-y-sm: 56px;
  }
  .m-footer .m-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .m-nav { display: none; }
}
@media (max-width: 600px) {
  .m-footer .m-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .m-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
