/*
 * Triathlon Syndicate — holding site.
 * Same palette and discipline bar as the videos, so a viewer arriving from a
 * Short recognises where they have landed.
 *
 * No web fonts are loaded from a CDN on purpose: a third-party font request
 * sends every visitor's IP address to that provider, which would have to be
 * declared in the privacy policy. Inter is used if the visitor has it; the
 * system sans-serif otherwise.
 */
:root {
  --ink: #0b1b2b;
  --ink-2: #13283d;
  --surface: #f4f6f8;
  --muted: #9fb0c2;
  --accent: #e8552d;
  --swim: #2f8fd8;
  --bike: #e8552d;
  --run: #3fa45b;
  --line: rgba(244, 246, 248, 0.12);
  --radius: 14px;
  --max: 1080px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
}
a { color: var(--surface); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Swim / bike / run — the brand signature from the videos. */
.discipline-bar { display: flex; height: 8px; }
.discipline-bar span { flex: 1; }
.discipline-bar .swim { background: var(--swim); }
.discipline-bar .bike { background: var(--bike); }
.discipline-bar .run { background: var(--run); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; padding-bottom: 22px;
}
.wordmark {
  font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 15px; text-decoration: none;
}
.wordmark::after {
  content: ""; display: block; width: 36px; height: 4px; margin-top: 6px; background: var(--accent);
}
header.site nav a { font-size: 15px; color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--surface); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(47, 143, 216, 0.22), transparent 70%),
    radial-gradient(700px 420px at -10% 110%, rgba(232, 85, 45, 0.14), transparent 70%);
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 18px;
}
h1 {
  font-size: clamp(40px, 8vw, 84px); line-height: 0.98; letter-spacing: -0.03em;
  font-weight: 900; margin: 0 0 22px; max-width: 12ch; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(19px, 2.4vw, 23px); color: #d7e0ea; max-width: 34ch; margin: 0 0 34px; }

/* ── Sign-up ──────────────────────────────────────────────────────────── */
.signup {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; max-width: 560px;
}
.signup h2 { font-size: 20px; margin: 0 0 4px; font-weight: 800; }
.signup p.sub { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.signup .row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 220px; min-width: 0; font: inherit; font-size: 17px;
  padding: 13px 14px; border-radius: 10px; border: 1px solid rgba(244, 246, 248, 0.28);
  background: var(--ink); color: var(--surface);
}
.signup input[type="email"]::placeholder { color: #6f8398; }
.signup button {
  flex: 0 0 auto; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer;
  padding: 13px 20px; border: 0; border-radius: 10px; background: var(--accent); color: #fff;
}
.signup button:hover { filter: brightness(1.08); }
.signup label.consent {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 14px;
  font-size: 14px; color: var(--muted); line-height: 1.45;
}
.signup label.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.signup .closed { color: var(--muted); font-size: 15px; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Sections ─────────────────────────────────────────────────────────── */
section.block { padding: 64px 0; border-top: 1px solid var(--line); }
section.block h2 {
  font-size: clamp(28px, 4.4vw, 42px); line-height: 1.08; letter-spacing: -0.02em;
  font-weight: 900; margin: 0 0 18px; max-width: 22ch; text-wrap: balance;
}
section.block p.intro { color: #d7e0ea; max-width: 60ch; margin: 0 0 32px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c, var(--accent)); }
.card h3 { font-size: 19px; margin: 6px 0 8px; font-weight: 800; }
.card p { margin: 0; color: #c9d4df; font-size: 16px; }
.card.swim { --c: var(--swim); }
.card.bike { --c: var(--bike); }
.card.run { --c: var(--run); }

.tension {
  margin-top: 28px; padding: 22px 24px; border-left: 4px solid var(--accent);
  background: rgba(232, 85, 45, 0.07); border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 68ch; color: #e6ecf2;
}
.tension strong { color: var(--surface); }

.status-list { list-style: none; padding: 0; margin: 0; max-width: 62ch; }
.status-list li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; color: #d7e0ea; }
.status-list li::before {
  content: ""; position: absolute; left: 4px; top: 22px; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--muted);
}
.status-list li.done::before { background: var(--run); border-color: var(--run); }
.status-list li.now::before { background: var(--accent); border-color: var(--accent); }

.watch { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.watch::after { content: "→"; transition: transform 0.15s; }
.watch:hover::after { transform: translateX(4px); }

footer.site { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }

/* ── Legal pages ──────────────────────────────────────────────────────── */
.legal { padding: 40px 0 72px; }
.legal article { max-width: 70ch; }
.legal h1 { font-size: clamp(34px, 6vw, 52px); max-width: none; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; font-weight: 800; }
.legal p, .legal li { color: #d7e0ea; }
.legal .meta { color: var(--muted); font-size: 15px; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero { padding: 36px 0 52px; }
  .signup button { width: 100%; }
  section.block { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
