/* Ergentics, LLC — site styles. Dawn palette + Spectral display + system body.
   On-brand with the existing PMHNP Companion privacy/support pages so visual
   language is coherent across everything Ergentics ships. */

:root {
  --bg: #F7F2EA;            /* dawn cream */
  --card: #FDFAF4;          /* warmer card */
  --ink: #1B1B1F;           /* deep — headings */
  --ink2: #5C5246;          /* body */
  --ink3: #8A7E6E;          /* muted */
  --line: #E4DCCD;          /* subtle line */
  --accent: #D85A30;        /* dawn orange — links */
  --teal: #2C5F6A;          /* deep teal — wordmark tick + mark */
  --serif: "Spectral", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink2);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
a:hover { border-bottom-color: var(--accent); }

/* ── Layout ─────────────────────────────────────────────────────────── */

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ── Header (site-wide) ─────────────────────────────────────────────── */

header.site {
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
}
header.site .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
  border-bottom: none;
}
.wordmark .mark {
  width: 18px;
  height: 18px;
  color: var(--teal);
  transform: translateY(2px);
}
.wordmark .name {
  position: relative;
  padding-bottom: 4px;
}
/* the teal tick-rule under E·R·G — the brand book's wordmark detail */
.wordmark .name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1.4em;            /* roughly under "Erg" */
  height: 2px;
  background: var(--teal);
}
nav.site a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-left: 20px;
}
nav.site a.current { color: var(--ink); }
nav.site a:hover { color: var(--ink); border-bottom-color: transparent; }

/* ── Hero (home only) ───────────────────────────────────────────────── */

.hero {
  padding: 56px 0 36px;
}
.hero .nabla {
  width: 56px;
  height: 56px;
  color: var(--teal);
  margin: 0 0 24px;
  display: block;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 4.4vw, 40px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.15;
}
.hero .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink3);
  margin: 0 0 28px;
}
.hero .lede {
  font-size: 17px;
  color: var(--ink);
  max-width: 56ch;
  margin: 0;
}

/* ── Page header (inner pages) ──────────────────────────────────────── */

.page-head {
  padding: 44px 0 24px;
}
.page-head .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink3);
  margin: 0 0 10px;
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 34px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

/* ── Body ───────────────────────────────────────────────────────────── */

main { padding: 0 0 64px; }

main h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 36px 0 8px;
}
main h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 6px;
}
main p {
  margin: 0 0 14px;
}
main p.lede {
  color: var(--ink);
  font-size: 17px;
}

/* ── Product cards ──────────────────────────────────────────────────── */

.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 14px 0;
}
.product .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.product h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  margin: 0;
}
.product .status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  white-space: nowrap;
}
.product p { margin: 6px 0 0; }

/* ── Inline contact box ─────────────────────────────────────────────── */

.contact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
}
.contact p { margin: 0 0 8px; }
.contact p:last-child { margin-bottom: 0; }

/* ── Privacy/Terms effective-date line ──────────────────────────────── */

.eff {
  color: var(--ink3);
  font-size: 14px;
  margin: 0 0 28px;
}

/* ── Footer ─────────────────────────────────────────────────────────── */

footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  margin-top: 24px;
}
footer.site .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
footer.site .legal {
  font-size: 13px;
  color: var(--ink3);
}
footer.site nav a {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-left: 16px;
}

/* ── Small-screen polish ────────────────────────────────────────────── */

@media (max-width: 520px) {
  header.site .row, footer.site .row { flex-direction: column; align-items: flex-start; gap: 10px; }
  nav.site a, footer.site nav a { margin-left: 0; margin-right: 14px; }
  .wordmark { font-size: 20px; }
}
