/*
 * peerfitness.texvnx.com
 *
 * Follows the TexvnX design language (texvnx.com): Geist, a deep green-black
 * ink on an off-white canvas, one green accent, hairline borders, pill
 * buttons. Kept deliberately small. The landing page is one screen, and the
 * legal pages are plain reading text.
 */

:root {
  --canvas: #fbfdfc;
  --surface: #f4f8f5;
  --ink: #08130d;
  --muted: #506158;
  --line: #dfe9e3;
  --green: #00a856;
  --green-deep: #087443;

  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --content: 68rem;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; display: flex; }

a { color: inherit; }

.center { display: flex; flex-direction: column; justify-content: center; }

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

/* ------------------------------- header ------------------------------- */

.site-header { border-bottom: 1px solid var(--line); }

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img { border-radius: 8px; }

.site-nav { display: flex; gap: 28px; }

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover { color: var(--ink); }

/* ------------------------------- landing ------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 48px 0;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.hero .lede {
  margin: 0 0 32px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 18px;
}

.features {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}

.features li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.features li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  transform: translateY(-2px);
}

.visual {
  display: flex;
  justify-content: center;
  justify-self: end;
  width: 100%;
  max-width: 320px;
}

/* The phone is tall; it is sized by height so the hero still fits one screen. */
.visual img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, 680px);
  filter: drop-shadow(0 24px 48px rgba(9, 10, 9, 0.16));
}

/* ------------------------------- buttons ------------------------------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.btn:hover { background: #1b2a21; }

.btn[aria-disabled="true"] {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  pointer-events: none;
}

/* ------------------------------ reading pages ------------------------------ */

.page { padding: 56px 0 72px; }

.narrow { max-width: 44rem; }

.page h1 {
  margin: 0 0 6px;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page .updated { margin: 0 0 40px; color: var(--muted); font-size: 14px; }

.page section { padding: 20px 0; border-top: 1px solid var(--line); }

.page h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

.page p { margin: 0; color: var(--muted); }

.page p a { color: var(--green-deep); }

.code {
  margin: 28px 0;
  font-family: var(--mono);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.2em;
}

.page .muted { margin-top: 24px; font-size: 14px; }

/* ------------------------------- footer ------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.company {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.company img { height: 18px; width: auto; display: block; }

.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

.site-footer nav a { text-decoration: none; }

.site-footer a:hover { color: var(--ink); }

/* ------------------------------- small screens ------------------------------- */

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 0; padding: 32px 0; }
  .visual { justify-self: center; max-width: 240px; margin-top: 40px; }
  .hero .lede { font-size: 16px; margin-bottom: 24px; }
  .features { margin-bottom: 28px; }
  .site-nav { gap: 20px; }
}
