/* Pumpline — site styles.
   One committed dark "open water" look, matched to the app icon. No web
   fonts and no third-party requests: the site keeps the same promise as the
   app, which is that nothing about you goes anywhere. */

:root {
  --bg: #03131b;
  --bg-raised: #06222e;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hi: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-hi: rgba(255, 255, 255, 0.16);
  --text: #e9f5f7;
  --muted: #9fb8c0;
  --faint: #7d99a2;
  --aqua: #34d6c8;
  --aqua-deep: #13a39a;
  --green: #3ddc84;
  --radius: 18px;
  --max: 1080px;
  /* One easing and one duration everywhere, so hovers feel like one object. */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 180ms;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--aqua); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #6ce9de; }

::selection { background: rgba(52, 214, 200, 0.28); color: #fff; }

:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(3, 19, 27, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 650; font-size: 18px;
}
.brand img {
  width: 32px; height: 32px; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; transition: color var(--fast) var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .lang {
  border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 10px; font-size: 13px; letter-spacing: 0.04em;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.site-nav .lang:hover { border-color: var(--aqua); color: var(--aqua); }

/* ---------- App Store button ---------- */

/* Deliberately not Apple's official badge: that is an image you fetch from
   their marketing site, and the whole site currently makes zero third-party
   requests. The wording is theirs, the shape is ours. */
.btn-store {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 13px 24px 13px 20px; border-radius: 999px;
  background: var(--aqua); color: #03131b; text-decoration: none;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn-store:hover { background: #4ee2d5; transform: translateY(-1px); }
.btn-store svg { width: 22px; height: 22px; flex: none; }
.btn-store .lead { display: block; font-size: 16px; font-weight: 650; line-height: 1.25; }
.btn-store .sub { display: block; font-size: 13px; font-weight: 500; opacity: 0.72; }

.site-nav .store { color: var(--aqua); font-weight: 600; }
.site-nav .store:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  /* The hero owns its own vertical rhythm: the generic section padding below
     would stack on top of the wrap's and push the devices off the fold. */
  padding: 0; border-top: 0;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(52, 214, 200, 0.20), transparent 70%),
    radial-gradient(45% 45% at 10% 0%, rgba(19, 163, 154, 0.16), transparent 70%);
}
.hero .wrap {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1.05fr 0.95fr;
  padding-top: 96px; padding-bottom: 104px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--aqua);
}
h1 {
  font-size: clamp(40px, 5.6vw, 64px); line-height: 1.04;
  letter-spacing: -0.025em; margin: 14px 0 20px; font-weight: 750;
  text-wrap: balance;
}
h1 .accent { color: var(--aqua); }
.lede {
  font-size: clamp(18px, 2vw, 21px); color: var(--muted);
  max-width: 34em; margin: 0 0 32px; text-wrap: pretty;
}

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 15px; font-weight: 550;
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.18);
  animation: breathe 3.2s var(--ease) infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0.06); }
}

/* Device imagery: the watch sits in front of the phone, as on the water.
   The stage is sized from the phone and both devices are a share of its
   width, so they keep overlapping at every screen size instead of drifting
   apart into two separate pictures. */
.devices {
  position: relative;
  width: min(100%, 380px); margin: 0 auto;
  aspect-ratio: 380 / 572;
}
.device-phone, .device-watch {
  position: absolute; overflow: hidden; background: #000;
  /* A thin black bezel reads as a device; the border is its polished edge. */
  padding: 5px; border: 1px solid rgba(255, 255, 255, 0.14);
}
.device-phone {
  right: 0; top: 0; width: 64.7%; aspect-ratio: 1206 / 2622;
  border-radius: 38px;
  box-shadow: 0 36px 80px -16px rgba(0, 0, 0, 0.75);
}
.device-watch {
  left: 0; bottom: 0; width: 48.9%; aspect-ratio: 416 / 496;
  border-radius: 46px; z-index: 1;
  /* Two shadows: a tight one that separates it from the phone behind, and a
     wide one that sits it on the page. */
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.9), 0 30px 70px -14px rgba(0, 0, 0, 0.7);
}
.device-phone img, .device-watch img { width: 100%; height: 100%; object-fit: cover; }
.device-phone img { border-radius: 33px; }
.device-watch img { border-radius: 41px; }

/* ---------- Sections ---------- */

section { padding: 96px 0; }
section + section { border-top: 1px solid var(--border); }
/* The sticky header is 64px tall, so anchored sections need room above them
   or their heading lands underneath it. */
section[id] { scroll-margin-top: 64px; }
.section-head { max-width: 40em; margin-bottom: 48px; }
h2 {
  font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1;
  letter-spacing: -0.02em; margin: 10px 0 16px; text-wrap: balance;
}
.section-head p { color: var(--muted); font-size: 19px; margin: 0; text-wrap: pretty; }

.why { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; letter-spacing: -0.01em;
  max-width: 30em; margin: 0; font-weight: 500; text-wrap: pretty; }
.why em { font-style: normal; color: var(--aqua); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative;
  /* A hair of light from the top edge, so a card looks lit rather than filled. */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}
.card:hover {
  border-color: var(--border-hi); transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8);
}
.card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); text-wrap: pretty; }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: rgba(52, 214, 200, 0.12); color: var(--aqua);
  box-shadow: inset 0 0 0 1px rgba(52, 214, 200, 0.22);
}
.card .icon svg { width: 22px; height: 22px; }

/* How a run is counted */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  margin-bottom: 16px; font-weight: 700; font-size: 15px;
  background: var(--aqua); color: #03232b;
  box-shadow: 0 0 0 5px rgba(52, 214, 200, 0.1);
}
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); text-wrap: pretty; }
.step .num { color: var(--text); font-weight: 600; white-space: nowrap; }
.note { margin-top: 24px; color: var(--faint); font-size: 15px; max-width: 78ch; }

/* Screenshot row */
/* Four phones across on a wide screen, two on a tablet, one on a phone —
   sized from the frames themselves so they never squeeze. */
.shots { display: grid; gap: 28px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 1000px; margin: 0 auto; }
.shots figure { margin: 0; }
.shots .frame {
  border-radius: 32px; overflow: hidden; background: #000;
  padding: 5px; border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 1206 / 2622;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.shots figure:hover .frame {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.85);
}
.shots .frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
.shots figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; text-align: center; }

/* Privacy band */
.privacy-band {
  background: linear-gradient(180deg, var(--bg-raised), var(--bg));
  border-top-color: var(--border-hi);
}
.privacy-band .wrap { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
.privacy-band p { color: var(--muted); font-size: 19px; margin: 0; text-wrap: pretty; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; }
.checks li::before {
  content: "✓"; flex: none;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  margin-top: 2px; font-size: 13px; font-weight: 700;
  background: rgba(61, 220, 132, 0.14); color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(61, 220, 132, 0.24);
}

/* ---------- Prose pages (privacy, support) ---------- */

.prose { max-width: 720px; margin: 0 auto; padding: 72px 24px 96px; }
.prose h1 { font-size: clamp(34px, 4.5vw, 48px); margin-bottom: 8px; }
.prose .updated { color: var(--faint); margin: 0 0 40px; font-size: 15px; }
.prose h2 { font-size: 24px; margin: 48px 0 12px; }
.prose p, .prose li { color: #cfe1e5; text-wrap: pretty; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--aqua-deep); }
.summary {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--aqua);
  border-radius: 12px; padding: 20px 24px; margin: 0 0 8px; font-size: 18px;
}
.summary p { margin: 0; color: var(--text); }

details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 22px; margin: 12px 0;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
details:hover { border-color: var(--border-hi); }
details[open] { background: var(--surface-hi); border-color: var(--border-hi); }
details summary {
  cursor: pointer; font-weight: 600; font-size: 18px; list-style: none;
  /* Room for the marker, which is absolutely placed rather than floated so a
     two-line question cannot wrap underneath it. */
  position: relative; padding-right: 28px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; position: absolute; right: 0; top: -1px;
  color: var(--aqua); font-weight: 400; font-size: 20px; line-height: 1;
}
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; }

.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px; margin: 8px 0 32px;
}
.contact-card p { margin: 0; flex: 1 1 18em; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--aqua); color: #03232b; font-weight: 650; text-decoration: none;
  transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}
.button:hover {
  background: #5de6da; color: #03232b; transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(52, 214, 200, 0.7);
}
.button:active { transform: translateY(0); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; transition: color var(--fast) var(--ease); }
.site-footer a:hover { color: var(--text); }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .hero .wrap, .privacy-band .wrap { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 48px; padding-bottom: 72px; gap: 40px; }
  .devices { width: min(100%, 330px); }
  .grid, .steps { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    max-width: 420px; margin: 0 auto; }
  section { padding: 72px 0; }
  .prose { padding-top: 56px; }
}

@media (max-width: 480px) {
  .pill { font-size: 14px; padding: 10px 16px; }
  .btn-store { padding: 12px 20px 12px 16px; }
  .btn-store .lead { font-size: 15px; }
  /* The nav gained a Download link, and on a phone the row no longer fits
     beside the wordmark — it rode over it. The icon still goes home, and
     the word stays in the accessibility tree rather than being removed. */
  .brand-name {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .site-nav { gap: 16px; font-size: 14px; }
  .site-nav .hide-sm { display: none; }
  .checks li { font-size: 17px; }
  .contact-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
