/* Fonts are served from this site (no Google Fonts), both under the SIL Open Font Licence. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2"); }

/* The site header and footer, shared by the marketing pages and the legal pages. */
:root {
  --green: #007A3F;
  --green-dark: #00602F;
  --button: #007A3F;
  --button-hover: #00602F;
  --ink: #1c2622;
  --muted: #5d6b65;
  --paper: #ffffff;
  --band: #F7F7F5;
  --line: #e3e7e4;
  --head-font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --green: #2fae6c;
    --green-dark: #48c483;
    --ink: #e8efeb;
    --muted: #9aa8a1;
    --paper: #111916;
    --band: #18221e;
    --line: #2a3530;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: block;
  margin: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-family: var(--body-font);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
}
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.wordmark svg { display: block; width: 36px; height: 36px; color: #007A3F; }
.wordmark span { font: 800 20px/1 var(--head-font); letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--green); font-size: 15px; font-weight: 500; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.pill {
  display: inline-block;
  padding: 12px 22px;
  border: 2px solid var(--button);
  border-radius: 30px;
  background: var(--button);
  color: #fff;
  font: 600 15px/1.2 var(--body-font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.pill:hover { background: var(--button-hover); border-color: var(--button-hover); }
.site-nav .pill { color: #fff; }
.site-nav .pill:hover { text-decoration: none; }

/* The links follow the visitor's choice of coach or fitness enthusiast; with no choice yet, the
   bar asks for one. Until role.js runs, a page with no choice counts as "none". */
html:not([data-role]) .site-header [data-for]:not([data-for~="none"]),
html[data-role="none"] .site-header [data-for]:not([data-for~="none"]),
html[data-role="coach"] .site-header [data-for]:not([data-for~="coach"]),
html[data-role="enthusiast"] .site-header [data-for]:not([data-for~="enthusiast"]) { display: none !important; }
.nav-choose { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; font-weight: 500; }
.nav-choose button {
  padding: 9px 18px;
  border: 1px solid var(--green);
  border-radius: 30px;
  background: transparent;
  color: var(--green);
  font: 600 15px/1.2 var(--body-font);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.nav-choose button:hover { background: var(--green); color: #fff; }

/* Phones and narrower screens: the links fold into a menu button. */
.menu { display: none; }
@media (max-width: 900px) {
  .site-header .bar { height: 64px; padding: 0 16px; }
  .site-nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary {
    list-style: none;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 30px;
    color: var(--green);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--band); }
  .menu .sheet {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: min(280px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  }
  .menu .sheet a { padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: 16px; text-decoration: none; }
  .menu .sheet a[aria-current="page"] { color: var(--green); font-weight: 600; }
  .menu .sheet .pill { margin-top: 6px; color: #fff; text-align: center; }
  .menu .sheet .nav-choose { flex-direction: column; align-items: stretch; padding: 4px; }
  .menu .sheet .nav-choose span { padding: 0 8px; color: var(--muted); font-size: 14px; }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font: 14px/1.6 var(--body-font);
}
.site-footer .inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}
.site-footer p { margin: 12px 0 0; max-width: 34ch; }
.site-footer h2 { margin: 0 0 10px; color: var(--ink); font: 600 14px/1.4 var(--head-font); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }
.site-footer .legal-line {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 700px) {
  .site-footer .inner { grid-template-columns: 1fr 1fr; padding: 40px 16px 16px; }
  .site-footer .about { grid-column: 1 / -1; }
  .site-footer .legal-line { padding: 16px 16px 28px; }
}
