/* Layout: a trail map at night (from the Claude Design canvas "Feelrun Website").
   A topographic map behind the top of each page; content in one centred container;
   each measure in its colour in the app (distance teal, climb lime, time amber,
   heart rate coral, pace blue); lime the one accent. Dark only, as the app. */
:root {
  color-scheme: dark;
  --ground: #061316;
  --surface: rgba(13, 32, 38, 0.92);
  --surface-solid: #0d2026;
  --ink: #f4fbfc;
  --ink-soft: rgba(244, 251, 252, 0.8);
  --ink-mid: rgba(244, 251, 252, 0.72);
  --ink-faint: rgba(244, 251, 252, 0.56);
  --rule: rgba(255, 255, 255, 0.08);
  --rule-strong: rgba(255, 255, 255, 0.14);
  --accent: #a6ff00;
  --distance: #00e5ff;
  --heart: #ff5c6c;
  --time: #ffc53d;
  --pace: #4da3ff;

  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gutter-l: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ground) url("img/contours.svg") center top / max(1600px, 100%) auto no-repeat;
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--distance); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
code { font-family: var(--font-mono); font-size: 0.92em; color: var(--distance); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
p, ul, ol, dl, figure { margin: 0; }

/* Containers: the home page is widest, the guide narrower, support and privacy read in a column */
.wrap { max-width: 1244px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.guide-page .wrap { max-width: 1104px; }
.doc-page .wrap { max-width: 860px; }

/* Header and footer */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 700 24px/1 var(--font-display); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px; font-size: 15px; font-weight: 600; }
.site-header nav a { padding: 8px 14px; border-radius: 999px; color: rgba(244, 251, 252, 0.78); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); background: var(--surface-solid); }
.site-header nav a[aria-current="page"] { color: var(--ground); background: var(--accent); }
.site-footer { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 40px 48px; font-size: 14px; color: var(--ink-faint); }
.site-footer a { color: rgba(244, 251, 252, 0.78); }
.site-footer.ruled { margin-top: 72px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 22px; }

/* Type */
.eyebrow { font: 700 13px/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.display { font-size: clamp(44px, 6.2vw, 80px); line-height: 1; font-weight: 800; letter-spacing: -0.015em; }
.title { font-size: clamp(44px, 6vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -0.01em; }
.h2 { font-size: 36px; line-height: 1.15; font-weight: 800; }
.lead { max-width: 34rem; font-size: 21px; line-height: 1.5; color: var(--ink-soft); }
.small { font-size: 14px; color: var(--ink-faint); }
.c-distance { color: var(--distance); }
.c-climb { color: var(--accent); }
.c-time { color: var(--time); }
.c-heart { color: var(--heart); }
.c-pace { color: var(--pace); }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--accent); color: var(--ground); font-weight: 700; text-decoration: none; }
.button:hover { color: var(--ground); filter: brightness(1.08); }
.button.ghost { background: none; border: 1px solid rgba(255, 255, 255, 0.16); color: var(--ink); font-weight: 600; padding: 0 22px; }
.button.ghost:hover { border-color: var(--distance); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* Hero: words and a picture side by side, stacked on a phone */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 72px 40px; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-media { flex: 0 1 340px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.device { display: block; border-radius: 34px; border: 1px solid var(--rule-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.device.phone { width: 100%; max-width: 320px; }
.device.watch { border-radius: 30% / 26%; }

/* Home: the measures of a sample run, the phone beside the watch */
.measures { display: flex; flex-wrap: wrap; gap: 8px 26px; padding-top: 4px; font: 700 26px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.measures small { font: 600 13px var(--font-body); color: var(--ink-faint); margin-left: 3px; }
.duo { flex: 0 1 520px; min-width: 0; display: flex; justify-content: center; align-items: flex-end; gap: 20px; }
.duo .phone { width: 62%; max-width: 300px; }
.duo .watch { width: 38%; max-width: 190px; margin-bottom: 40px; }

/* The free 30 days */
.free { border: 1px solid var(--accent); background: var(--surface); border-radius: 28px; padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; }
.free > div { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.free h2 { font-size: 32px; line-height: 1.15; font-weight: 800; }
.free p { color: var(--ink-mid); }
.checks { flex: 2 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 28px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.checks li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 2px;
  background: no-repeat center / 22px 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.3l2.4 2.4 5.2-5.4' fill='none' stroke='%23a6ff00' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Sections of the home page */
.band { padding-top: 96px; display: flex; flex-direction: column; gap: 28px; }
.band-head { display: flex; flex-direction: column; gap: 8px; }
.screens { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.screens figure { flex: 0 0 216px; display: flex; flex-direction: column; gap: 12px; scroll-snap-align: start; }
.screens img { display: block; width: 100%; border-radius: 28px; border: 1px solid var(--rule-strong); }
figcaption { font-size: 14px; color: var(--ink-mid); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--rule); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-soft); }
.watches { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.watches figure { display: flex; flex-direction: column; gap: 12px; }
.watches img { display: block; width: 100%; max-width: 260px; border-radius: 30% / 26%; border: 1px solid var(--rule-strong); }
.private { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding-block: 32px; border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.private h2 { flex: 1 1 260px; font-size: 28px; font-weight: 800; }
.private p { flex: 2 1 480px; min-width: 0; color: var(--ink-soft); }

/* The key guide */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; padding-block: 24px 16px; }
.facts h3 { font-family: var(--font-body); font-size: 17px; line-height: 1.3; }
.facts p { font-size: 15px; color: var(--ink-mid); }
.steps-head { padding-top: 56px; margin-bottom: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--rule); border-radius: 28px; padding: clamp(22px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.step.finish { border-color: var(--accent); }
.step-text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.step-text h2 { font-size: 28px; line-height: 1.2; font-weight: 750; }
.step-text p { max-width: 30rem; font-size: 18px; color: var(--ink-soft); }
.step-text p.note { font-size: 16px; color: rgba(244, 251, 252, 0.6); }
.badge { width: 40px; height: 40px; border-radius: 50%; background: var(--distance); color: var(--ground); display: flex; align-items: center; justify-content: center; font: 800 18px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.finish .badge { background: var(--accent); }
.step-media { flex: 0 1 340px; display: flex; justify-content: center; }
.step-media.wide { flex-basis: 380px; }
.step-media img { display: block; max-width: 100%; max-height: 440px; border-radius: 22px; border: 1px solid var(--rule-strong); }
.step-media.tall img { max-height: 520px; }
.step-media.wide img { max-height: none; border-radius: 18px; }
.providers { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.provider { background: var(--ground); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.provider strong:first-child { font-weight: 700; }
.provider p { font-size: 15px; color: rgba(244, 251, 252, 0.78); }
.trouble { padding-top: 64px; display: flex; flex-wrap: wrap; gap: 20px; }
.trouble > div:first-child { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.trouble h2 { font-size: 28px; font-weight: 800; }
.trouble dl { display: flex; flex-direction: column; gap: 16px; }
.trouble dt { font-weight: 700; }
.trouble dd { margin: 2px 0 0; color: rgba(244, 251, 252, 0.75); }
.trouble .card { flex: 1 1 300px; min-width: 0; align-self: flex-start; padding: 26px; }
.trouble .card h2 { font-size: 22px; }

/* Support and privacy: a document to read */
.doc-head { display: flex; flex-direction: column; gap: 14px; padding-top: 56px; }
.doc { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.doc h2 { margin-top: 34px; font-size: 28px; line-height: 1.2; font-weight: 800; }
.doc h3 { margin-top: 16px; font-family: var(--font-body); font-size: 17px; font-weight: 700; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.toc a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: var(--surface-solid); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.toc a:hover { border-color: var(--distance); }
.contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.contact strong { font: 700 21px/1.3 var(--font-display); user-select: all; overflow-wrap: anywhere; }
.link-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; text-decoration: none; color: var(--ink); }
.link-card:hover { color: var(--ink); border-color: var(--distance); }
.link-card span:first-child { display: flex; flex-direction: column; gap: 2px; }
.link-card .arrow { color: var(--distance); font: 700 26px/1 var(--font-display); }

@media (max-width: 600px) {
  .brand { font-size: 21px; }
  .brand img { width: 36px; height: 36px; }
  .site-header nav { margin-left: -14px; }
  .hero { padding-top: 48px; gap: 40px; }
  .band { padding-top: 72px; }
  .h2 { font-size: 30px; }
  .step-text h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.doc-head h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.05; font-weight: 800; }
.muted { color: var(--ink-faint); }
