/* =========================================================
   Nexia Health — Landing
   Palette sampled from the original reference mockup
   ========================================================= */
:root {
  /* Brand */
  --navy-950: #061a33;
  --navy-900: #0a2342;
  --navy-800: #0f2b4c;   /* headings */
  --navy-700: #163a63;
  --green-600: #0e9f7e;  /* brand green (mockup) */
  --green-700: #0a8569;  /* accessible green on white */
  --green-400: #2ccf9f;
  --green-300: #5fe0b9;

  /* Neutrals */
  --ink: #0f2b4c;
  --ink-soft: #4a5d75;
  --line: #e3eaf1;
  --surface: #ffffff;
  --surface-2: #f2f7fa;
  --hero-1: #f7fafc;
  --hero-2: #e9f1f6;

  /* Semantic */
  --text: var(--ink);
  --muted: var(--ink-soft);
  --accent: var(--green-600);
  --accent-ink: var(--green-700);

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 43, 76, .05), 0 4px 14px rgba(15, 43, 76, .05);
  --shadow: 0 18px 40px -18px rgba(15, 43, 76, .22), 0 2px 6px rgba(15, 43, 76, .05);
  --shadow-lg: 0 40px 80px -30px rgba(6, 26, 51, .45);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 10vw, 128px); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--green-700); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 16px; }

.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy-700); margin-bottom: 18px;
}
.eyebrow--light { color: var(--green-300); }
.h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 700; color: var(--navy-800); }

.accent { color: var(--green-600); }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-ink); font-weight: 700; font-size: 15px;
}
.link .ic { transition: transform .4s var(--ease-out); }
.link:hover .ic { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer;
  transition: transform .4s var(--ease-out), background-color .3s, box-shadow .4s var(--ease-out), color .3s, border-color .3s;
}
.btn .ic { transition: transform .4s var(--ease-out); }
.btn:hover .ic { transform: translateX(3px); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 54px; padding: 0 26px; font-size: 15.5px; }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: 0 12px 26px -12px rgba(14, 159, 126, .8); }
.btn--primary:hover { background: #087359; box-shadow: 0 18px 34px -12px rgba(14, 159, 126, .9); }
.btn--outline { background: #fff; color: var(--navy-800); border-color: #cfd9e3; }
.btn--outline:hover { border-color: var(--green-600); color: var(--green-700); transform: translateY(-2px); }
.btn--ghost { color: var(--navy-800); border-color: #cfd9e3; background: transparent; }
.btn--ghost:hover { border-color: var(--green-600); color: var(--green-700); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: transparent; border: 0; color: inherit; transition: background-color .3s, color .3s;
}
.icon-btn:hover { background: rgba(15, 43, 76, .07); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; line-height: 1; color: var(--navy-800); }
.logo__word { font-weight: 800; font-size: 27px; letter-spacing: -0.02em; }
.logo__sub { font-weight: 700; font-size: 10.5px; letter-spacing: .74em; color: var(--green-600); margin-top: 4px; padding-left: 2px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  color: var(--navy-800); background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow .4s, height .4s var(--ease-out);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { position: relative; padding: 10px 12px; font-size: 14.5px; font-weight: 600; color: var(--navy-800); transition: color .25s; }
.nav__links a:hover { color: var(--green-700); }
.nav__links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--green-600); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; margin-left: auto; }
.nav.is-scrolled { height: 66px; box-shadow: 0 1px 0 rgba(15,43,76,.06), 0 10px 30px -14px rgba(15,43,76,.2); }

.mobile-menu { display: grid; gap: 4px; padding: 8px var(--gutter) 24px; background: #fff; box-shadow: 0 20px 30px -20px rgba(15,43,76,.3); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 14px; }

/* Pulls the comma/period closer to the word in headings */
.punct { margin-left: -.08em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: inline-grid; }
}
@media (max-width: 720px) {
  :root { --nav-h: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
