/* ============================================================================
   marketing.css — Altair commercial pages (compare / solutions / pillar / listicle)
   Self-contained. Faithfully replicates the live landing site's nav, footer,
   and hero typography so these static pages are indistinguishable from
   altair-health.com. Tokens copied from apps/web/src/styles/theme.css (:root,
   force-light). Fonts loaded via the <head> Google Fonts link.
   ============================================================================ */

:root {
  --background: 38 30% 96%;
  --foreground: 225 45% 14%;
  --muted-foreground: 225 15% 40%;
  --card: 38 30% 97%;
  --border: 30 14% 84%;
  --border-soft: 225 45% 14%; /* used as hsl(var(--border-soft) / 0.08) */
  --primary: 225 45% 14%;
  --success: 152 60% 40%;
  --warning: 38 95% 50%;
  --violet: 265 55% 52%;
  --trust-link: 220 60% 42%;
  --radius: 0.625rem;
  --shadow-lg: 0 10px 15px -3px hsl(222 47% 11% / 0.06),
    0 4px 6px -4px hsl(222 47% 11% / 0.03);
  --shadow-card: 0 30px 60px -44px hsl(225 45% 14% / 0.16);
  --nav-h: 64px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  margin: 0;
}

.serif-accent,
.font-display-serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ── Buttons (BookACallButton parity) ──────────────────────────── */
.mkt-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  font-family: "Outfit", sans-serif;
  transition: opacity 0.15s ease;
}
.mkt-cta--filled {
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}
.mkt-cta--filled.mkt-cta--lg {
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
}
.mkt-cta--filled:hover {
  opacity: 0.85;
}
.mkt-cta--text {
  background: transparent;
  padding: 0;
  font-size: 14px;
  color: hsl(var(--foreground) / 0.4);
  text-align: left;
}
.mkt-cta--text:hover {
  opacity: 0.7;
}

/* ── Nav (LandingNavbar parity) ────────────────────────────────── */
.mkt-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mkt-nav-inner {
  position: relative;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
}
.mkt-nav-logo {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: hsl(var(--foreground));
  text-decoration: none;
}
.mkt-nav-logo-mark svg {
  width: 28px;
  height: 38px;
  display: block;
}
.mkt-nav-wordmark {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mkt-nav-actions {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}
.mkt-nav-links {
  display: none;
  align-items: center;
  gap: 24px;
}
.mkt-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.mkt-nav-link:hover {
  opacity: 0.6;
}
.mkt-nav-pipe {
  display: none;
  width: 2px;
  height: 18px;
  border-radius: 1px;
  background: hsl(var(--foreground) / 0.25);
}
.mkt-nav-help {
  position: relative;
}
.mkt-nav-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: hsl(var(--foreground) / 0.7);
  cursor: pointer;
  transition: all 0.15s ease;
}
.mkt-nav-help-btn:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--foreground) / 0.05);
}
.mkt-nav-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  min-width: 220px;
  padding: 8px 0;
  border-radius: 16px;
  background: hsl(var(--background));
  box-shadow: 0 0 0 1px hsl(var(--border) / 0.5), var(--shadow-lg);
  z-index: 50;
}
.mkt-nav-menu.open {
  display: block;
}
.mkt-nav-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 14px;
  color: hsl(var(--foreground) / 0.8);
  text-decoration: none;
  transition: color 0.1s ease;
}
.mkt-nav-menu a:hover {
  color: hsl(var(--foreground));
}
.mkt-nav-menu a svg {
  color: hsl(var(--muted-foreground));
}
.mkt-nav-menu-divider {
  height: 1px;
  margin: 6px 0;
  background: hsl(var(--border) / 0.3);
}

@media (min-width: 640px) {
  .mkt-nav-logo {
    left: 88px;
    gap: 12px;
  }
  .mkt-nav-logo-mark svg {
    width: 36px;
    height: 49px;
  }
  .mkt-nav-wordmark {
    font-size: 26px;
  }
  .mkt-nav-links {
    display: flex;
  }
  .mkt-nav-pipe {
    display: inline-block;
  }
  .mkt-nav-menu-mobile {
    display: none !important;
  }
}

/* ── Hero (HeroSection parity, no Constellation) ───────────────── */
.mkt-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px;
  text-align: center;
}
.mkt-hero-inner {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mkt-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--violet));
  margin: 0 0 30px;
}
.mkt-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 960px;
  text-wrap: balance;
}
.mkt-hero h1 .serif-accent {
  display: block;
  margin-top: 0.06em;
}
.mkt-hero-sub {
  margin: 48px 0 0;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: hsl(var(--foreground) / 0.66);
  max-width: 620px;
  text-wrap: pretty;
}
.mkt-hero-sub + .mkt-hero-sub {
  margin-top: 26px;
}
.mkt-hero-cta {
  margin-top: 56px;
}
.mkt-trust {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: hsl(var(--foreground) / 0.62);
}
.mkt-trust-dot {
  opacity: 0.35;
}
.mkt-trust a {
  color: hsl(var(--trust-link));
  text-decoration: none;
  font-weight: 600;
}

/* ── Section scaffold ──────────────────────────────────────────── */
.mkt-section {
  padding: 96px 24px;
}
.mkt-section-head {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.mkt-section-head h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}
.mkt-section-head h2 .serif-accent {
  display: inline;
}
.mkt-section-intro {
  margin: 24px auto 0;
  max-width: 760px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: hsl(var(--foreground) / 0.64);
  text-wrap: pretty;
}

/* ── Comparison table (AltairVsComparisonSection parity) ───────── */
.mkt-compare {
  max-width: 1080px;
  margin: 56px auto 0;
  border: 1px solid hsl(var(--border-soft) / 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: hsl(var(--card));
}
.mkt-compare table {
  width: 100%;
  border-collapse: collapse;
}
.mkt-compare th,
.mkt-compare td {
  text-align: left;
  padding: 20px 24px;
  vertical-align: top;
  font-size: 15px;
}
.mkt-compare thead th {
  border-bottom: 1px solid hsl(var(--border-soft) / 0.1);
}
.mkt-compare thead .mkt-compare-cap {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.mkt-compare thead .mkt-compare-altair,
.mkt-compare thead .mkt-compare-comp {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 600;
}
.mkt-compare tbody tr {
  border-top: 1px solid hsl(var(--border-soft) / 0.08);
}
.mkt-compare tbody tr:first-child {
  border-top: 0;
}
.mkt-compare-row-cap {
  font-weight: 600;
  color: hsl(var(--foreground));
  width: 34%;
}
/* Altair column subtle tint */
.mkt-compare col.mkt-col-altair,
.mkt-compare .mkt-cell-altair {
  background: hsl(var(--violet) / 0.04);
}
.mkt-compare-comp-cell {
  color: hsl(var(--foreground) / 0.7);
}
.mkt-glyph {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mkt-glyph::before {
  font-weight: 700;
  font-size: 15px;
}
.mkt-glyph--yes::before {
  content: "✓";
  color: hsl(var(--success));
}
.mkt-glyph--partial::before {
  content: "◐";
  color: hsl(var(--warning));
}
.mkt-glyph--no::before {
  content: "—";
  color: hsl(var(--muted-foreground));
}
.mkt-compare-closing {
  max-width: 820px;
  margin: 56px auto 0;
  text-align: center;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mkt-disclaimer {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.45);
}

/* ── Works-with strip ──────────────────────────────────────────── */
.mkt-works {
  text-align: center;
}
.mkt-works-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.mkt-chip {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid hsl(var(--border-soft) / 0.1);
  background: hsl(var(--card));
  font-size: 14px;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.75);
}
.mkt-chip--more {
  background: transparent;
  border-style: dashed;
  color: hsl(var(--foreground) / 0.55);
}
.mkt-works-cycle {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.62);
}
.mkt-works-cycle strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}

/* ── FAQ accordion (ComparisonFaqSection parity) ───────────────── */
.mkt-faq {
  max-width: 760px;
  margin: 48px auto 0;
}
.mkt-faq-item {
  border: 1px solid hsl(var(--border-soft) / 0.1);
  border-radius: 16px;
  background: hsl(var(--card));
  margin-bottom: 14px;
  overflow: hidden;
}
.mkt-faq-item[open] {
  border-color: hsl(var(--violet) / 0.4);
}
.mkt-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mkt-faq-item summary::-webkit-details-marker {
  display: none;
}
.mkt-faq-toggle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  color: hsl(var(--foreground) / 0.5);
}
.mkt-faq-toggle::before,
.mkt-faq-toggle::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.2s ease;
}
.mkt-faq-toggle::before {
  top: 9px;
  left: 2px;
  width: 16px;
  height: 2px;
}
.mkt-faq-toggle::after {
  top: 2px;
  left: 9px;
  width: 2px;
  height: 16px;
}
.mkt-faq-item[open] .mkt-faq-toggle::after {
  transform: rotate(90deg);
  opacity: 0;
}
.mkt-faq-answer {
  padding: 0 26px 24px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.66);
}

/* ── Closing CTA band ──────────────────────────────────────────── */
.mkt-closing {
  text-align: center;
}
.mkt-closing h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  max-width: 900px;
  margin: 0 auto;
  text-wrap: balance;
}
.mkt-closing-cta {
  margin-top: 40px;
}

/* ── How it works (solution pages) ─────────────────────────────── */
.mkt-steps {
  max-width: 820px;
  margin: 48px auto 0;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mkt-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid hsl(var(--border-soft) / 0.1);
  border-radius: 18px;
  background: hsl(var(--card));
}
.mkt-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: hsl(var(--violet) / 0.12);
  color: hsl(var(--violet));
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mkt-step-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.mkt-step-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: hsl(var(--foreground) / 0.66);
}

/* ── Vendor list (listicle + alternatives roundup) ─────────────── */
.mkt-vendors {
  max-width: 860px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mkt-vendor {
  padding: 24px 28px;
  border: 1px solid hsl(var(--border-soft) / 0.1);
  border-radius: 18px;
  background: hsl(var(--card));
}
.mkt-vendor--altair {
  border-color: hsl(var(--violet) / 0.4);
  background: hsl(var(--violet) / 0.04);
}
.mkt-vendor-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.mkt-vendor-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.mkt-vendor-compare {
  font-size: 13px;
  color: hsl(var(--violet));
  text-decoration: none;
  white-space: nowrap;
}
.mkt-vendor-good {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: hsl(var(--foreground) / 0.66);
}
.mkt-vendor-bestfor {
  margin: 12px 0 0;
  font-size: 14px;
  color: hsl(var(--foreground) / 0.55);
}
.mkt-vendor-bestfor strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}

/* ── Vendor groups (buyer-job landscape) ───────────────────────── */
.mkt-vendor-group {
  max-width: 860px;
  margin: 48px auto 0;
}
.mkt-vendor-group-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--violet));
  margin: 0;
}
.mkt-vendor-group-blurb {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: hsl(var(--foreground) / 0.62);
}
.mkt-vendor-group .mkt-vendors {
  margin-top: 20px;
}

/* ── Related guides (internal link cluster) ────────────────────── */
.mkt-related {
  max-width: 980px;
  margin: 0 auto;
}
.mkt-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
}
.mkt-related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid hsl(var(--border-soft) / 0.1);
  border-radius: 14px;
  background: hsl(var(--card));
  text-decoration: none;
  color: hsl(var(--foreground));
  font-weight: 500;
  transition: border-color 0.15s ease;
}
.mkt-related-card:hover {
  border-color: hsl(var(--violet) / 0.4);
}
.mkt-related-card .arrow {
  color: hsl(var(--violet));
}
@media (min-width: 640px) {
  .mkt-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Footer (Footer.tsx parity) ────────────────────────────────── */
.mkt-footer {
  padding: 64px 20px;
  border-top: 1px solid hsl(var(--foreground) / 0.06);
}
.mkt-footer-inner {
  max-width: 1224px;
  margin: 0 auto;
}
.mkt-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.mkt-footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: hsl(var(--foreground));
  font-size: 16px;
  font-weight: 600;
}
.mkt-footer-brand-logo svg {
  width: 20px;
  height: 27px;
}
.mkt-footer-tagline {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: hsl(var(--foreground) / 0.4);
}
.mkt-footer-trust {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: hsl(var(--foreground) / 0.5);
}
.mkt-footer-dot {
  opacity: 0.4;
}
.mkt-footer-trust-link {
  color: hsl(var(--trust-link));
  text-decoration: none;
}
.mkt-footer-s7 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  text-decoration: none;
  color: hsl(var(--foreground) / 0.4);
  transition: opacity 0.15s ease;
}
.mkt-footer-s7:hover {
  opacity: 0.7;
}
.mkt-footer-s7 span:first-child {
  font-size: 13px;
}
.mkt-footer-s7-name {
  font-size: 13px;
  font-weight: 500;
  color: hsl(var(--foreground));
}
.mkt-footer-s7 svg {
  color: hsl(var(--foreground) / 0.3);
}
.mkt-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mkt-footer-col-label {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 500;
  color: hsl(var(--foreground));
}
.mkt-footer-col a {
  font-size: 14px;
  text-decoration: none;
  color: hsl(var(--foreground) / 0.4);
  transition: opacity 0.15s ease;
}
.mkt-footer-col a:hover {
  opacity: 0.7;
}
/* "Talk to us" is a button; keep it flush-left with the column's links. */
.mkt-footer-col .mkt-cta--text {
  justify-content: flex-start;
  align-self: flex-start;
}
.mkt-footer-divider {
  margin-top: 48px;
  border-top: 1px solid hsl(var(--foreground) / 0.08);
}
.mkt-footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mkt-footer-copy {
  margin: 0;
  font-size: 13px;
  color: hsl(var(--foreground) / 0.25);
}
.mkt-footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mkt-footer-socials a {
  color: hsl(var(--foreground) / 0.35);
  transition: color 0.15s ease;
}
.mkt-footer-socials a:hover {
  color: hsl(var(--foreground) / 0.7);
}
.mkt-footer-socials svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 768px) {
  .mkt-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .mkt-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
  }
}

/* ── Mobile table → stacked ────────────────────────────────────── */
@media (max-width: 720px) {
  .mkt-compare th,
  .mkt-compare td {
    padding: 14px 16px;
    font-size: 14px;
  }
  .mkt-compare-row-cap {
    width: auto;
  }
}
