/* Shared NuuHealth family stylesheet (NuuHealth / NuuPharma / NuuMD).
   Identical copy in each site's public/ — edit all three together. */

@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;
  --surface: #121412;
  --text: #F5F5F0;
  --muted: rgba(245, 245, 240, 0.62);
  --faint: rgba(245, 245, 240, 0.38);
  --line: rgba(245, 245, 240, 0.10);
  --accent: #8FA68E;
  --accent-hover: #A3B8A2;
  --on-accent: #0A0A0A;
  --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: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Wordmark — heading font, fixed size, tracked out */
.wordmark {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
}
.wordmark::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.site-header { padding: 28px 0; }

/* ---------- NuuHealth hero ---------- */
.hero {
  min-height: calc(100svh - 75px);
  display: flex;
  align-items: center;
  padding: 48px 0 96px;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.75rem, 8.2vw, 6.75rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  max-width: 11ch;
}
.hero .subhead {
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
  margin: 0 0 44px;
}

.signup { max-width: 520px; }
.signup-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 560px) {
  .signup-row { flex-direction: row; gap: 8px; }
  .signup .signup-row input[type="email"] { flex: 1 1 auto; }  /* higher specificity: base rule below sets 0 0 auto */
}
.signup input[type="email"] {
  flex: 0 0 auto;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.signup input[type="email"]::placeholder { color: var(--faint); }
.signup input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(143, 166, 142, 0.18);
}
.signup button {
  height: 54px;
  padding: 0 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--on-accent);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, opacity .2s ease;
}
.signup button:hover { background: var(--accent-hover); }
.signup button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.signup button[disabled] { opacity: .6; cursor: default; }
.signup-msg {
  min-height: 1.6em;
  margin: 14px 2px 0;
  font-size: 15px;
  color: var(--danger);
}
.signup-done {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin: 0;
  padding: 14px 0;
}
.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;
}

/* ---------- Philosophy ---------- */
.philosophy { padding: 24px 0 120px; }
.principle {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle .num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.principle h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
}
.principle p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 38ch;
}
@media (min-width: 880px) {
  .principle {
    grid-template-columns: 80px minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 32px;
    align-items: baseline;
    padding: 64px 0;
  }
}

/* Fade-in on scroll (only when JS is running, so no-JS still shows content) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 40px 0 48px;
  font-size: 14px;
  color: var(--faint);
}
.site-footer p { margin: 0; }
.site-footer p + p { margin-top: 6px; }
.site-footer .launch { color: var(--muted); }

/* ---------- Entity placeholder pages (NuuPharma / NuuMD) ---------- */
.entity {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.entity main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0 64px;
}
.entity .statement {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 5.6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin: 0 auto 36px;
}
.entity .to-parent {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 166, 142, 0.35);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}
.entity .to-parent:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
.entity .to-parent:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
