/* NuuHealth homepage (nuuhealth.ca / .co / .us). The splash family stylesheet
   (styles.css) stays shared with NuuPharma / NuuMD; this file is homepage-only. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0A0A0A;
  --bg-raised: #141414;
  --bg-card: #1A1A1A;
  --border: #222;
  --border-strong: #2E2E2E;
  --ink: #F5F5F0;
  --ink-dim: #D5D5CF;
  --ink-mute: #8A8A85;
  --sage: #8FA68E;
  --sage-dim: #6E8470;
  --sage-glow: rgba(143, 166, 142, 0.08);
  --good: #B8CCB5;
  --watch: #D4B37E;
  --low: #C77A6E;
  --danger: #D9A08B;

  --font-head: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
a { color: inherit; }
::selection { background: var(--sage); color: var(--bg); }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Lockup (same structure as the splash; 36px mark, wordmark scaled 36/48) ---------- */
.brand-lockup { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; width: fit-content; }
.brand-mark { flex-shrink: 0; }
.wordmark {
  font-family: var(--font-head);
  font-size: 31.5px;
  letter-spacing: -0.0357em;
  line-height: 1;
  white-space: nowrap;
}
.wm-nuu { font-weight: 700; color: var(--ink); }
.wm-suffix { font-weight: 200; color: var(--ink-dim); }
.wm-dot { font-weight: 700; font-size: 1.2857em; line-height: 0; margin-left: -1px; color: var(--sage); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: 0;
  border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-primary { background: var(--sage); color: var(--bg); }
.btn-primary:hover { background: #A3B8A2; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink-mute); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; font-size: 15px;
  color: var(--ink-dim); text-decoration: none; transition: color .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: none; border: 1px solid var(--border-strong); border-radius: 12px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.drawer { border-top: 1px solid var(--border); background: var(--bg); }
.drawer nav { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 24px; }
.drawer a:not(.btn) {
  font-family: var(--font-head); font-weight: 500; font-size: 18px; text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--ink);
}
.drawer .btn { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 112px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 78% 40%, var(--sage-glow), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; margin-bottom: 28px;
  font-family: var(--font-head); font-weight: 500; font-size: 13px; color: var(--ink-dim);
  background: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: 999px;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(143, 166, 142, 0.18); }
.hero h1 { font-weight: 700; font-size: 76px; line-height: 1.0; letter-spacing: -3px; margin-bottom: 26px; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-dim); max-width: 34em; margin-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.updates { margin: -12px 0 28px; font-size: 14px; }
.updates a { color: var(--ink-dim); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; transition: color .2s ease, text-decoration-color .2s ease; }
.updates a:hover { color: var(--ink); text-decoration-color: var(--sage); }
.final .updates { margin: 16px 0 0; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 0; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-mute); }
.trust svg { width: 16px; height: 16px; fill: none; stroke: var(--sage); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Dashboard preview illustration */
.preview { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pv-card {
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 18px;
  padding: 18px 20px; font-size: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.pv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.pv-sub { font-weight: 500; font-size: 12px; color: var(--ink-mute); white-space: nowrap; }
.pv-card ul { list-style: none; padding: 0; margin: 0; }
.pv-bio { grid-column: 1 / -1; }
.pv-bio li { display: grid; grid-template-columns: 1fr auto 10px; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid var(--border); color: var(--ink-dim); }
.pv-val { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pv-val em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--ink-mute); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.good { background: var(--good); }
.dot.watch { background: var(--watch); }
.dot.low { background: var(--low); }
.bubble { padding: 10px 12px; border-radius: 12px; line-height: 1.45; font-size: 13px; }
.bubble.user { background: var(--bg-raised); border: 1px solid var(--border); color: var(--ink); margin: 0 0 8px 18px; }
.bubble.ai { background: var(--sage-glow); border: 1px solid rgba(143, 166, 142, 0.22); color: var(--ink-dim); margin-right: 6px; }
.pv-proto li { padding: 9px 0; border-top: 1px solid var(--border); color: var(--ink); font-family: var(--font-head); font-weight: 500; }
.bar { display: block; height: 4px; margin-top: 8px; background: var(--border-strong); border-radius: 99px; overflow: hidden; }
.bar b { display: block; height: 100%; background: var(--sage); border-radius: 99px; }
/* Hero illustration: a library guide page (2026-11-12) */
.pv-title { margin: 2px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 30px; letter-spacing: -1px; line-height: 1.05; color: var(--ink); }
.pv-kicker { margin: 6px 0 10px; font-size: 13px; color: var(--ink-mute); }
.pv-guide li { grid-template-columns: 1fr auto; font-size: 13.5px; }
.pv-tier { font-family: var(--font-head); font-weight: 600; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--sage); background: var(--sage-glow); border: 1px solid rgba(143, 166, 142, 0.35); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.pv-tier.soft { color: var(--ink-dim); background: transparent; border-color: var(--border-strong); }
.pv-note { margin: 0; padding: 10px 12px; border-radius: 12px; line-height: 1.45; font-size: 13px; color: var(--ink-dim); background: var(--sage-glow); border: 1px solid rgba(143, 166, 142, 0.22); }
.pv-src li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; color: var(--ink); }
.pv-src li em { font-style: normal; font-size: 12px; color: var(--ink-mute); }
.pv-link { display: inline-block; margin-top: 10px; font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--sage); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); margin-bottom: 16px; }
.section h2 { font-weight: 700; font-size: 48px; line-height: 1.08; letter-spacing: -1.8px; }
.section-sub { margin-top: 18px; font-size: 18px; color: var(--ink-dim); max-width: 40em; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* Benefits tiles */
.tile { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 20px; padding: 28px; }
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 22px;
  background: rgba(143, 166, 142, 0.12); border: 1px solid rgba(143, 166, 142, 0.22);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--sage); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-weight: 600; font-size: 20px; letter-spacing: -0.4px; margin-bottom: 10px; }
.tile p { color: var(--ink-dim); font-size: 16px; line-height: 1.6; }

/* Product category tiles (no brand or compound names — firewall) */
.product { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.product h3 { font-weight: 600; font-size: 20px; letter-spacing: -0.4px; margin-bottom: 10px; }
.p-desc { color: var(--ink-dim); font-size: 16px; line-height: 1.6; margin-bottom: 22px; }
.p-save {
  align-self: flex-start; margin-top: auto; margin-bottom: 18px;
  font-family: var(--font-head); font-weight: 600; font-size: 12px; color: var(--bg);
  background: var(--sage); padding: 4px 11px; border-radius: 999px;
}
.p-link { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--sage); text-decoration: none; transition: color .2s ease; }
.p-link:hover { color: #A3B8A2; }
.p-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* Library cards */
.read { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.r-type { font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.read h3 { font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -0.5px; margin-bottom: 12px; }
.read > p:not([class]) { color: var(--ink-dim); font-size: 16px; margin-bottom: 22px; }
.r-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.r-meta span { font-size: 13px; color: var(--ink-mute); border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 11px; }

/* FAQ */
.faq-wrap { max-width: 1040px; }
.faq { margin: 0; border-top: 1px solid var(--border); }
.faq > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; padding: 30px 0; border-bottom: 1px solid var(--border); }
.faq dt { font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: -0.3px; line-height: 1.35; }
.faq dd { margin: 0; color: var(--ink-dim); font-size: 16px; }

/* Final CTA */
.final {
  position: relative; text-align: center; padding: 80px 40px;
  background: radial-gradient(70% 90% at 50% 0%, rgba(143, 166, 142, 0.16), transparent 70%), var(--bg-raised);
  border: 1px solid var(--border-strong); border-radius: 28px;
  box-shadow: 0 0 120px rgba(143, 166, 142, 0.08);
}
.final .section-sub { margin: 18px auto 0; }
.prices { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 40px 0 36px; }
.price-tile { display: flex; align-items: baseline; gap: 8px; padding: 18px 26px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border-strong); }
.price-tile .amt { font-family: var(--font-head); font-weight: 700; font-size: 34px; letter-spacing: -1px; }
.price-tile .per { color: var(--ink-mute); font-size: 15px; }
.price-tile.hot { border-color: var(--sage); background: rgba(143, 166, 142, 0.10); }
.price-tile.hot .amt { color: var(--sage); }
.price-or { font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--ink-mute); white-space: nowrap; }
.final-note { margin-top: 18px; font-size: 14px; color: var(--sage); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 72px 0 36px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; margin-bottom: 56px; }
.footer-brand p { margin-top: 16px; color: var(--ink-mute); font-size: 15px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)); gap: 64px; }
.footer-cols h4 { font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.footer-cols a { display: block; color: var(--ink-mute); text-decoration: none; font-size: 15px; padding: 4px 0; transition: color .2s ease; }
.footer-cols a:hover { color: var(--ink); }
.footer-bar { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--ink-mute); }

/* ---------- Join dialog (email capture → /api/subscribe) ---------- */
.join {
  width: min(460px, calc(100vw - 32px)); padding: 36px 32px 28px;
  background: var(--bg-raised); color: var(--ink);
  border: 1px solid var(--border-strong); border-radius: 22px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.join::backdrop { background: rgba(0, 0, 0, 0.66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.join h2 { font-weight: 700; font-size: 26px; letter-spacing: -0.8px; margin-bottom: 22px; }
.join-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  background: none; border: 0; color: var(--ink-mute); font-size: 24px; line-height: 1; cursor: pointer; border-radius: 10px;
}
.join-close:hover { color: var(--ink); }
.signup { display: flex; flex-direction: column; gap: 10px; }
.signup input[type="email"] {
  height: 52px; padding: 0 18px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 12px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.signup input[type="email"]::placeholder { color: var(--ink-mute); }
.signup input[type="email"]:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(143, 166, 142, 0.18); }
.signup .btn { height: 52px; }
.signup-msg { min-height: 1.5em; font-size: 14px; color: var(--danger); }
.signup-done { font-family: var(--font-head); font-weight: 500; font-size: 1.2rem; color: var(--sage); padding: 8px 0 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .preview { max-width: 640px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .faq > div { grid-template-columns: 1fr; gap: 10px; }
  .footer-top { flex-direction: column; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .wordmark { font-size: 27px; }
  .brand-mark { width: 31px; height: 31px; }
  .hero { padding: 48px 0 72px; }
  .hero h1 { font-size: 46px; letter-spacing: -1.8px; }  /* -3px at 76px, same ratio */
  .lede { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .preview { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .section h2 { font-size: 32px; letter-spacing: -1.2px; }  /* -1.8px at 48px, same ratio */
  .section-sub { font-size: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .final { padding: 52px 20px; border-radius: 22px; }
  .prices { flex-direction: column; gap: 10px; }
  .price-tile { width: 100%; max-width: 280px; justify-content: center; }
  .final .btn-lg { width: 100%; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer-bar { flex-direction: column; }
}
