/* HealthNEXAA homepage — from design-references/preview.html
   Loaded only on index.html after styles.css */
:root {
  --hn-bg: #f7fafc;
  --hn-surface: #fff;
  --hn-text: #102235;
  --hn-muted: #617187;
  --hn-line: #dde7ee;
  --hn-brand: #0f766e;
  --hn-brand-dark: #0b5f59;
  --hn-brand-soft: #dff5f1;
  --hn-blue-soft: #eef4ff;
  --hn-shadow: 0 18px 50px rgba(24, 58, 77, 0.1);
  --hn-container: 1180px;
  --hn-proof-records: "7,000+";
}

body.page-home {
  background: var(--hn-bg);
  color: var(--hn-text);
}

/* Container + header width come from shared styles.css */

body.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: 0.2s transform, 0.2s background;
}

body.page-home .btn:hover {
  transform: translateY(-1px);
}

body.page-home .btn:focus-visible,
body.page-home .journey-step:focus-visible {
  outline: 2px solid var(--hn-brand);
  outline-offset: 3px;
}

body.page-home .btn-primary {
  background: var(--hn-brand);
  color: #fff;
  border-color: transparent;
}

body.page-home .btn-primary:hover {
  background: var(--hn-brand-dark);
  color: #fff;
}

body.page-home .btn-dark {
  background: #102235;
  color: #fff;
  border-color: transparent;
}

body.page-home .btn-ghost {
  border-color: var(--hn-line);
  background: #fff;
  color: var(--hn-text);
}

body.page-home .btn-light {
  background: #fff;
  color: #0e2630;
  border-color: transparent;
}

body.page-home .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--hn-brand);
  margin-bottom: 12px;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

body.page-home .section {
  padding: 88px 0;
}

body.page-home .section-alt {
  background: #f0f5f7;
}

body.page-home .section-dark {
  background: #0e2630;
  color: #fff;
}

body.page-home .section-dark .eyebrow {
  color: #8ee4d7;
}

body.page-home h1 {
  font-size: clamp(2.5rem, 5vw, 5.3rem);
  letter-spacing: -0.055em;
  line-height: 1.15;
  margin: 0;
  max-width: none;
}

body.page-home h2 {
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0;
}

body.page-home h3 {
  font-size: 1.2rem;
  line-height: 1.15;
  margin: 0;
}

body.page-home .intro {
  max-width: 780px;
  color: var(--hn-muted);
  font-size: 1.08rem;
  margin-top: 18px;
}

body.page-home .btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0;
}

/* Hero */
body.page-home .hero {
  padding: 76px 0 44px;
  background:
    radial-gradient(circle at 85% 10%, rgba(30, 94, 215, 0.1), transparent 28%),
    radial-gradient(circle at 5% 15%, rgba(15, 118, 110, 0.12), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f7fafc 100%);
}

body.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 64px;
  align-items: center;
}

body.page-home .lead {
  max-width: 680px;
  margin: 24px 0 28px;
  font-size: 1.18rem;
  color: var(--hn-muted);
}

body.page-home .hero-note {
  margin-top: 20px;
  color: #536278;
  font-size: 0.92rem;
  font-weight: 700;
}

body.page-home .journey-panel {
  background: #102d37;
  color: #fff;
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 30px 70px rgba(16, 45, 55, 0.22);
}

body.page-home .panel-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #87dfd1;
}

body.page-home .panel-title {
  font-size: 2rem;
  margin-top: 8px;
  color: #fff;
}

body.page-home .journey-loop {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

body.page-home .journey-step {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
  min-height: 115px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

body.page-home .journey-step.active {
  background: #fff;
  color: var(--hn-text);
}

body.page-home .journey-step .num {
  font-size: 0.72rem;
  font-weight: 800;
  color: #8edfd2;
}

body.page-home .journey-step.active .num {
  color: var(--hn-brand);
}

body.page-home .journey-step strong {
  display: block;
  margin-top: 8px;
}

body.page-home .journey-step p {
  font-size: 0.82rem;
  color: #c5d5dc;
  margin: 4px 0 0;
}

body.page-home .journey-step.active p {
  color: var(--hn-muted);
}

/* Proof */
body.page-home .proof-strip {
  padding: 26px 0;
  border-block: 1px solid var(--hn-line);
  background: #fff;
}

body.page-home .proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

body.page-home .proof-item {
  padding: 8px 18px;
  border-left: 1px solid var(--hn-line);
}

body.page-home .proof-item:first-child {
  border-left: 0;
  padding-left: 0;
}

body.page-home .proof-item strong {
  display: block;
  font-size: 1.08rem;
}

body.page-home .proof-item span {
  display: block;
  color: var(--hn-muted);
  font-size: 0.86rem;
  margin-top: 4px;
}

/* Cards / grids */
body.page-home .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 34px;
}

body.page-home .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}

body.page-home .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

body.page-home .card {
  background: #fff;
  border: 1px solid var(--hn-line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(24, 58, 77, 0.05);
}

body.page-home .label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--hn-brand);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

body.page-home .problem {
  background: #fff8f7;
}

body.page-home .solution {
  background: #f4fbf9;
}

body.page-home .list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 13px;
}

body.page-home .list li {
  padding-left: 28px;
  position: relative;
  color: #48596d;
}

body.page-home .list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.72rem;
}

body.page-home .problem .list li::before {
  content: "×";
  background: #ffe4e1;
  color: #b73b3b;
}

body.page-home .solution .list li::before {
  content: "✓";
  background: #dff5f1;
  color: var(--hn-brand);
}

/* Product views */
body.page-home .view-card {
  padding: 0;
  overflow: hidden;
}

body.page-home .view-visual {
  min-height: 190px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(145deg, #e9f2ff, #f8fbff);
  border-bottom: 1px solid var(--hn-line);
}

body.page-home .view-card:nth-child(2) .view-visual {
  background: linear-gradient(145deg, #e7f7f4, #f8fffd);
}

body.page-home .view-card:nth-child(3) .view-visual {
  background: linear-gradient(145deg, #fff5de, #fffdf7);
}

body.page-home .mini-ui {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--hn-shadow);
}

body.page-home .mini-bar {
  height: 9px;
  border-radius: 999px;
  background: #dbe6ee;
  margin-bottom: 10px;
}

body.page-home .mini-bar.short {
  width: 56%;
}

body.page-home .mini-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

body.page-home .mini-box {
  height: 44px;
  border-radius: 10px;
  background: #edf3f7;
}

body.page-home .view-content {
  padding: 24px;
}

body.page-home .view-content p {
  color: var(--hn-muted);
  margin-top: 10px;
}

body.page-home .view-content ul {
  padding-left: 18px;
  color: #4f6074;
  font-size: 0.92rem;
}

/* Pillars */
body.page-home .pillar-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 34px;
}

body.page-home .pillar {
  grid-column: span 4;
}

body.page-home .pillar.wide {
  grid-column: span 8;
}

body.page-home .pillar-number {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--hn-brand-soft);
  color: var(--hn-brand);
  font-weight: 800;
  margin-bottom: 18px;
}

body.page-home .pillar p,
body.page-home .segment-card p {
  color: var(--hn-muted);
  margin-top: 10px;
}

/* Journey timeline */
body.page-home .timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 38px;
}

body.page-home .timeline-step {
  background: #fff;
  border: 1px solid var(--hn-line);
  border-radius: 16px;
  padding: 18px;
}

body.page-home .timeline-step span {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--hn-brand);
  text-transform: uppercase;
}

body.page-home .timeline-step h3 {
  font-size: 1rem;
  margin-top: 9px;
}

body.page-home .timeline-step p {
  font-size: 0.82rem;
  color: var(--hn-muted);
  margin-top: 7px;
}

body.page-home .segment-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--hn-blue-soft);
  color: var(--hn-brand, #0d9488);
  margin-bottom: 18px;
}

body.page-home .segment-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

body.page-home .start-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 22px;
}

body.page-home .start-step .num {
  font-weight: 800;
  color: #8ee4d7;
}

body.page-home .start-step h3 {
  margin-top: 14px;
  color: #fff;
}

body.page-home .start-step p {
  color: #c2d2d9;
  margin-top: 10px;
  font-size: 0.9rem;
}

body.page-home .section-dark .intro {
  color: #c5d5dc;
}

/* CTA */
body.page-home .cta-band {
  padding: 72px 0;
  background: linear-gradient(135deg, #0f766e, #134e4a);
  color: #fff;
  text-align: left;
}

body.page-home .cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

body.page-home .cta-copy {
  max-width: 720px;
}

body.page-home .cta-copy h2 {
  color: #fff;
}

body.page-home .cta-copy p {
  margin-top: 14px;
  color: #d8f3ee;
}

body.page-home .cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
}

/* Footer */
body.page-home .site-footer {
  background: #091a22;
  color: #fff;
  padding: 54px 0 28px;
  border-top: 0;
  font-size: 1rem;
}

body.page-home .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}

body.page-home .footer-blurb {
  color: #aebfc8;
  margin-top: 14px;
  max-width: 390px;
}

body.page-home .footer-title {
  font-weight: 800;
  margin-bottom: 14px;
}

body.page-home .footer-links {
  display: grid;
  gap: 9px;
}

body.page-home .footer-links a {
  color: #b9c9d0;
  font-size: 0.92rem;
}

body.page-home .footer-links a:hover {
  color: #fff;
}

body.page-home .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 42px;
  padding-top: 22px;
  color: #8ea3ad;
  font-size: 0.82rem;
}

body.page-home .site-footer .brand {
  color: #fff;
}

@media (max-width: 980px) {
  body.page-home .hero-grid,
  body.page-home .grid-2 {
    grid-template-columns: 1fr;
  }

  body.page-home .grid-3,
  body.page-home .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  body.page-home .pillar,
  body.page-home .pillar.wide {
    grid-column: span 6;
  }

  body.page-home .timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  body.page-home .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.page-home .nav {
    position: relative;
    flex-wrap: wrap;
  }

  body.page-home .nav-links {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    background: #fff;
    border: 1px solid var(--hn-line);
    border-radius: 18px;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--hn-shadow);
    z-index: 120;
  }

  body.page-home .nav-links.open {
    display: flex;
  }

  body.page-home .nav-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  body.page-home .section {
    padding: 66px 0;
  }

  body.page-home .hero {
    padding-top: 50px;
  }

  body.page-home .journey-loop,
  body.page-home .grid-3,
  body.page-home .grid-4,
  body.page-home .proof-grid,
  body.page-home .footer-grid,
  body.page-home .timeline {
    grid-template-columns: 1fr;
  }

  body.page-home .pillar,
  body.page-home .pillar.wide {
    grid-column: span 12;
  }

  body.page-home .proof-item {
    border-left: 0;
    padding: 12px 0;
    border-top: 1px solid var(--hn-line);
  }

  body.page-home .proof-item:first-child {
    border-top: 0;
  }

  body.page-home .cta-wrap,
  body.page-home .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  body.page-home .journey-panel {
    padding: 22px;
  }

  body.page-home h1 {
    font-size: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home *,
  body.page-home *::before,
  body.page-home *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
