/* BilanX Health: shared styles for every page.
   Page-specific rules live in home.css and lablet.css. */

/* ---------- tokens ---------- */
:root {
  --ink: #1b1a21;
  --muted: #57545f;
  --plum: #17151b;     /* dark bands: hero, header, footer */
  --deep: #241a35;     /* audience band */
  --violet: #57348b;   /* brand primary */
  --signal: #b69ae4;   /* violet lifted for dark backgrounds */
  --soft: #f5f4f8;
  --tint: #eeebf4;
  --line: #dcd8e4;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Manrope", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.85rem); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; }

.wrap { max-width: 1360px; margin-inline: auto; padding-inline: var(--pad); }

/* ---------- accessibility ---------- */
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; top: 8px; left: -999px; z-index: 99; padding: 8px 14px; background: #fff; color: var(--ink); }
.skip:focus { left: 8px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Dark band: plum background, white text, focus ring in the light violet. */
.on-dark { background: var(--plum); color: #fff; }
.on-dark :focus-visible { outline-color: var(--signal); }

/* ---------- wordmark ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  font-family: "Poppins", var(--display);
  font-size: clamp(3rem, 5vw, 4.3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.055em;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
}
.logo-x {
  flex: none;
  width: .78em;
  height: .78em;
  margin-left: .02em;
  overflow: visible;
  fill: none;
  stroke: var(--signal);
  stroke-width: 5;
  stroke-linecap: square;
}
.logo-tag {
  align-self: center;
  margin-left: 1em;
  padding-left: 1em;
  border-left: 1px solid rgba(255, 255, 255, .3);
  font-family: var(--sans);
  font-size: .23em;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .78);
}

/* ---------- site header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-top: clamp(18px, 2.4vw, 30px);
}
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-size: .92rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, .84);
  text-decoration: none;
  transition: color .2s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-underline-offset: 7px;
}
.site-nav .nav-cta {
  min-height: 40px;
  padding: 0 1.1em;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 4px;
  color: #fff;
}
.site-nav .nav-cta:hover { border-color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }

/* ---------- contact email ---------- */
.mail {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--violet);
  text-decoration-color: var(--violet);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

/* ---------- site footer ---------- */
.site-footer { padding-block: 24px; background: var(--plum); color: rgba(255, 255, 255, .66); font-size: .85rem; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 40px;
}
.site-footer .logo { font-size: 2.6rem; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .logo { font-size: 3rem; }
}
@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-nav { flex-wrap: wrap; gap: 0 20px; font-size: .9rem; }
  .site-footer .wrap { align-items: flex-start; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
