/* Wellness-Master — minimal black-on-white design system */

:root {
  --fg: #000000;
  --bg: #ffffff;
  --muted: #666666;
  --border: #e5e5e5;
  --code-bg: #f7f7f7;
  --card-bg: #ffffff;
  --logo-src: url("logos/wellness-master-logo-black.png");
  --max-width: 920px;
  --content-padding: 24px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --fg: #f5f5f5;
  --bg: #0d0d0d;
  --muted: #9a9a9a;
  --border: #262626;
  --code-bg: #1a1a1a;
  --card-bg: #141414;
  --logo-src: url("logos/wellness-master-logo-white.png");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fg: #f5f5f5;
    --bg: #0d0d0d;
    --muted: #9a9a9a;
    --border: #262626;
    --code-bg: #1a1a1a;
    --card-bg: #141414;
    --logo-src: url("logos/wellness-master-logo-white.png");
  }
}

/* Theme toggle button — sized + circular, sits inline in the nav. */
button.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  margin-left: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: background 0.15s, border-color 0.15s;
  vertical-align: middle;
}
button.theme-toggle:hover { background: var(--code-bg); border-color: var(--fg); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

code, pre { font-family: var(--font-mono); font-size: 0.92em; }
code { background: var(--code-bg); padding: 2px 6px; border-radius: 3px; }
pre { background: var(--code-bg); padding: 16px 20px; border-radius: 6px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; border-radius: 0; }

hr { border: 0; border-top: 1px solid var(--border); margin: 48px 0; }

/* Layout */
.nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px var(--content-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}
.nav-brand {
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1;
  white-space: nowrap;
}
.nav-brand > * { flex: 0 0 auto; }
.nav-brand span { line-height: 1; vertical-align: middle; }
.nav-brand:hover { text-decoration: none; }
img.brand-logo,
img.footer-logo,
img.hero-logo {
  display: inline-block;
  object-fit: contain;
  flex-shrink: 0;
}
img.brand-logo  { width: 28px; height: 28px; border-radius: 6px; }
img.footer-logo { width: 22px; height: 22px; }
img.hero-logo   { width: 88px; height: 88px; margin: 0 auto 20px; display: block; }
.nav-links a { margin-left: 24px; font-size: 0.95rem; }
.nav-links a:first-child { margin-left: 0; }
.nav-links a[aria-current="page"] { font-weight: 600; }

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

/* Hero */
.hero {
  padding: 72px var(--content-padding) 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  display: block;
  object-fit: contain;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0 0 24px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 700;
}
.hero p.lead {
  font-size: 1.25rem;
  margin: 0 auto 40px;
  max-width: 640px;
  color: var(--muted);
}
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--fg);
  transition: opacity 0.15s ease;
}
.btn:hover { text-decoration: none; opacity: 0.85; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-secondary { background: var(--bg); color: var(--fg); }

/* Sections */
section { padding: 64px 0; }
section h2 {
  font-size: 2rem;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
section h2.centered { text-align: center; }
section p.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 720px;
}
section p.section-lead.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  background: var(--card-bg);
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .icon { font-size: 1.4rem; display: block; margin-bottom: 12px; }

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.price-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  background: var(--card-bg);
}
.price-card h3 { margin: 0 0 12px; font-size: 1.05rem; font-weight: 600; }
.price-card .price { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; }
.price-card .unit { color: var(--muted); font-size: 0.9rem; margin: 4px 0 16px; }
.price-card .desc { color: var(--muted); font-size: 0.95rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px;
  padding-left: 56px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 24px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* CTA */
.cta {
  text-align: center;
  padding: 80px var(--content-padding);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.cta h2 { margin-bottom: 16px; }
.cta p { color: var(--muted); margin: 0 0 32px; }

/* Hero badge — "first platform for humans AND agents" */
.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 24px;
  color: var(--muted);
}
.hero h1 .amp { color: var(--muted); font-weight: 400; }

/* Trust strip — under the hero CTAs. Three production proofs in a row. */
.trust-strip {
  list-style: none;
  margin: 32px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 0.92rem;
  color: var(--muted);
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.trust-strip strong { color: var(--fg); font-weight: 600; }
.trust-strip a { color: var(--fg); }
.trust-strip li + li {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
@media (max-width: 600px) {
  .trust-strip { gap: 12px; font-size: 0.85rem; }
  .trust-strip li + li { border-left: none; padding-left: 0; }
}

/* Install block — the primary "do something now" CTA right under the hero. */
.install-block { padding: 64px var(--content-padding) 56px; border-bottom: 1px solid var(--border); }
.install-cmd {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 18px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
  overflow-x: auto;
}

/* Two-column "why" grid */
.grid.two-col { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .grid.two-col { grid-template-columns: 1fr; } }

/* Audience toggle (hero examples) */
.audience-toggle {
  display: flex;
  gap: 0;
  justify-content: center;
  margin: 24px auto 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
}
.aud-btn {
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.aud-btn.is-active {
  background: var(--fg);
  color: var(--bg);
}
.aud-btn:hover:not(.is-active) { color: var(--fg); }
.audience-examples { max-width: var(--max-width); margin: 0 auto; }
.example-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) { .example-pair { grid-template-columns: 1fr; } }
.example-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background: var(--card-bg);
}
.example-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.example-text {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.5;
  white-space: pre-wrap;
  margin: 0;
  background: transparent;
  padding: 0;
  color: var(--fg);
  min-height: 4.5em;
}

/* Research page */
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}
@media (max-width: 920px) { .research-grid { grid-template-columns: 1fr; } }
.research-grid h2 { margin-top: 0; }
.research-entry {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: var(--card-bg);
}
.research-entry h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; }
.research-entry .meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 8px;
}
.research-entry .cite {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 8px 0 0;
}

/* Use cases */
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 920px) { .usecase-grid { grid-template-columns: 1fr; } }
.usecase-grid section {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  background: var(--card-bg);
}
.usecase-grid h2 {
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 12px;
}
.uc-list { padding-left: 1.2em; margin: 0; }
.uc-list li { margin-bottom: 14px; line-height: 1.5; }
.uc-list code { font-size: 0.9em; }

/* Footer */
footer {
  padding: 32px var(--content-padding);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
footer a { color: var(--muted); }

/* Docs page specific */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: flex-start;
  padding: 48px var(--content-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}
.docs-toc {
  position: sticky;
  top: 80px;
  font-size: 0.92rem;
  border-right: 1px solid var(--border);
  padding-right: 24px;
}
.docs-toc h4 { margin: 0 0 12px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.docs-toc ul { list-style: none; padding: 0; margin: 0; }
.docs-toc li { margin: 6px 0; }
.docs-toc a { text-decoration: none; color: var(--muted); }
.docs-toc a:hover { color: var(--fg); }
.docs-content h1 { font-size: 2.5rem; margin: 0 0 24px; letter-spacing: -0.02em; }
.docs-content h2 { margin: 48px 0 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 1.5rem; }
.docs-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.docs-content h3 { margin: 28px 0 12px; font-size: 1.1rem; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; }
tbody tr:hover { background: var(--code-bg); }

/* Responsive */
@media (max-width: 720px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { display: none; }
  .pricing { grid-template-columns: 1fr; }
  .nav-links a { margin-left: 16px; font-size: 0.9rem; }
}
