/* SE Triathlon — public website. One stylesheet, no JavaScript, no trackers. */
:root {
  --ink: #1f2933;
  --muted: #52606d;
  --bg: #ffffff;
  --band: #f4f6f8;
  --line: #dde1e6;
  --brand: #1f3a5f;
  --brand-ink: #ffffff;
  --link: #1f5f99;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6e9ed;
    --muted: #a5afbb;
    --bg: #12171d;
    --band: #1a2129;
    --line: #2d3742;
    --brand: #7fb0e6;
    --brand-ink: #0e1a26;
    --link: #8ec1f2;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3 { line-height: 1.2; }
a { color: var(--link); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: 720px; }

header.site {
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  flex-wrap: wrap;
}
.wordmark {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}
nav.site a {
  margin-left: 1.25rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
nav.site a:hover { color: var(--ink); text-decoration: underline; }

.hero { padding: 4.5rem 0 3.5rem; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.hero p.lead { font-size: 1.3rem; color: var(--muted); margin: 0 0 2rem; max-width: 34rem; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  background: var(--brand);
  color: var(--brand-ink);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--brand);
}
.button.secondary { background: transparent; color: var(--brand); }

section.band { background: var(--band); }
section.block { padding: 3.5rem 0; }
section.block h2 { font-size: 1.75rem; margin: 0 0 1rem; letter-spacing: -0.01em; }
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 1.5rem; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.25rem 1rem; background: var(--bg); }
.card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; padding-left: 3rem; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 700;
}
.steps strong { display: block; }
.steps span { color: var(--muted); }

main.page { padding: 3rem 0 4rem; }
main.page h1 { font-size: 2.2rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
main.page h2 { font-size: 1.35rem; margin: 2.25rem 0 0.5rem; }
main.page p, main.page li { color: var(--ink); }
main.page .meta { color: var(--muted); margin-bottom: 2rem; }
main.page ul { padding-left: 1.25rem; }
main.page details { border-top: 1px solid var(--line); padding: 0.9rem 0; }
main.page details:last-of-type { border-bottom: 1px solid var(--line); }
main.page summary { cursor: pointer; font-weight: 600; }
main.page details p { margin: 0.6rem 0 0; color: var(--muted); }

footer.site { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.9rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer.site a { color: var(--muted); margin-right: 1.1rem; }

@media (max-width: 560px) {
  .hero { padding: 3rem 0 2.5rem; }
  nav.site a { margin-left: 0.9rem; }
}

/* ---- Home page (landing) ---- */
header.site.on-hero { position: absolute; left: 0; right: 0; top: 0; border-bottom: 0; z-index: 2; }
header.site.on-hero .wordmark, header.site.on-hero nav.site a { color: #fff; }
header.site.on-hero nav.site a:hover { color: #fff; opacity: 0.85; }
nav.site a.login {
  padding: 0.45rem 1rem; border: 1.5px solid currentColor; border-radius: 999px;
  color: var(--brand); font-weight: 600; text-decoration: none;
}
header.site.on-hero nav.site a.login { border-color: rgba(255,255,255,0.85); }
header.site.on-hero nav.site a.login:hover { background: rgba(255,255,255,0.14); text-decoration: none; opacity: 1; }

.hero-home {
  color: #fff;
  padding: 7.5rem 0 4.5rem;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(80, 170, 210, 0.35), transparent 60%),
    linear-gradient(135deg, #0f2238 0%, #1f3a5f 55%, #2a5f86 100%);
}
.hero-home h1 { color: #fff; max-width: 20ch; font-size: clamp(2rem, 4.6vw, 3.1rem); }
.hero-home p.lead { color: rgba(255,255,255,0.86); max-width: 32rem; }
.hero-grid { display: grid; gap: 3rem; grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.button.light { background: #fff; color: #14283f; border-color: #fff; }
.button.light:hover { background: #eaf2f9; }
.button.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.button.ghost:hover { background: rgba(255,255,255,0.12); }
.hero-home a:focus-visible { outline-color: #fff; }

.mock {
  background: #fff; color: #1f2933; border-radius: 18px; padding: 1.25rem 1.35rem 1.1rem;
  box-shadow: 0 18px 50px rgba(5, 15, 30, 0.45); max-width: 360px; justify-self: center; width: 100%;
}
.mock-tag { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7785; float: right; }
.mock-head { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.7rem; }
.mock-verdict { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.2rem; margin-bottom: 1.1rem; }
.mock-verdict .dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: #2f9e6e; display: inline-block; }
.gauge-row { margin-bottom: 0.9rem; }
.gauge-label { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.3rem; color: #3e4c59; }
.gauge-label strong { color: #1f2933; }
.track {
  position: relative; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, #d9534f 0 18%, #e0a43a 18% 38%, #9bb5c9 38% 60%, #2f9e6e 60% 100%);
}
.marker { position: absolute; top: -4px; width: 4px; height: 16px; border-radius: 2px; background: #1f2933; box-shadow: 0 0 0 2px #fff; }
.marker.m-hrv { left: 68%; }
.marker.m-form { left: 50%; }
.marker.m-sleep { left: 76%; }
.mock-foot { font-size: 0.85rem; color: #52606d; border-top: 1px solid #e4e7eb; padding-top: 0.7rem; margin-top: 0.4rem; }

.chips { border-bottom: 1px solid var(--line); background: var(--bg); }
.chips ul { list-style: none; margin: 0; padding: 1rem 0; display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.95rem; font-size: 0.95rem; color: var(--muted); background: var(--band); }
.cta { text-align: left; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-home { padding: 6.5rem 0 3rem; }
}
@media (max-width: 560px) {
  header.site.on-hero .wrap { padding-top: 0.5rem; }
  nav.site a:not(.login) { display: none; }
  .chips ul { justify-content: flex-start; }
}

.beta-note { background: var(--band); border-left: 4px solid var(--brand); padding: 0.7rem 1rem; border-radius: 0 8px 8px 0; margin: 0 0 1.5rem; color: var(--muted); font-size: 0.95rem; }
