:root {
  /* Taken from the app mocks (docs/mocks) so the site and the app read as one product. */
  --ink: #241a5e;
  --purple: #3a1fa8;
  --muted: #605a86;
  --paper: #fbf9f5;
  --lavender: #ece8fb;
  --line: #e2dbf7;
  --orange: #f0913f;
  --orange-soft: #fbeee0;
  --strava: #fc5200;
  --white: #fff;

  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance;
}

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

.sr-only, .hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Nav */
.nav { padding: 18px 0; }
.brand { display: inline-block; }
.brand img { height: 44px; width: auto; }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lede { font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--muted); margin-top: 18px; }

/* Waitlist form */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: var(--purple); color: var(--white);
  font: inherit; font-weight: 700; padding: 15px 24px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: default; }

.waitlist { margin-top: 32px; width: 100%; max-width: 520px; }
.field {
  display: flex; gap: 8px; padding: 6px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(36, 26, 94, 0.45);
}
.field:focus-within { border-color: var(--purple); }
.field input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: inherit; padding: 0 16px; outline: none;
}
.field input::placeholder { color: #a39fc0; }
.form-note { font-size: 0.88rem; color: var(--muted); margin-top: 12px; }
.waitlist[data-state="error"] .form-note { color: #b3261e; }
.waitlist[data-state="done"] .field { display: none; }
.waitlist[data-state="done"] .form-note {
  padding: 16px 20px; border-radius: 18px; font-size: 1rem; font-weight: 600;
  background: var(--lavender); color: var(--ink);
}

/* The three app screens */
.phones {
  display: flex; justify-content: center; align-items: flex-start; gap: 36px;
  margin-top: 64px; padding: 0 24px 8px;
}
.shot { position: relative; flex: none; margin-top: 36px; }
.shot-mid { margin-top: 0; }
.shot figcaption {
  text-align: center; margin-top: 20px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple);
}

.phone {
  width: 280px; padding: 10px; border-radius: 44px; background: var(--ink);
  box-shadow: 0 40px 70px -30px rgba(36, 26, 94, 0.55);
}
.phone-screen {
  background: var(--paper); border-radius: 35px; padding: 30px 18px 22px;
  height: 520px; overflow: hidden; display: flex; flex-direction: column;
}

.monkey { position: absolute; right: -118px; bottom: 30px; width: 140px; }

/* Screen 1: recording, on the wrist */
.watches { position: relative; width: 300px; height: 540px; }
.watch { position: absolute; }
/* Strap, drawn behind the case */
.watch::before {
  content: ""; position: absolute; left: 18%; right: 18%; top: -46px; bottom: -46px; z-index: -1;
  border-radius: 22px; background: linear-gradient(#3a1fa8, #241a5e);
}
.watch-screen {
  position: relative; height: 100%; background: #000; color: var(--white);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.rec-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px;
  background: #ff453a; animation: pulse 1.6s ease-in-out infinite;
}
.w-time { font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.w-hr { color: #ff453a; font-weight: 800; }
.w-hr small { font-size: 0.6em; font-weight: 700; letter-spacing: 0.06em; }

.watch-apple {
  top: 46px; left: 0; width: 196px; height: 236px; padding: 11px;
  border-radius: 56px; background: #1a1a22;
  box-shadow: 0 30px 50px -24px rgba(36, 26, 94, 0.6);
}
/* Digital crown */
.watch-apple::after {
  content: ""; position: absolute; right: -7px; top: 62px; width: 9px; height: 34px;
  border-radius: 4px; background: #2e2e3a;
}
.watch-apple .watch-screen { border-radius: 45px; padding: 18px 16px 14px; }
.w-top {
  display: flex; justify-content: space-between; width: 100%; padding: 0 6px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
}
.w-top span:first-child { color: #ff453a; }
.watch-apple .w-time { font-size: 3rem; margin-top: 16px; }
.watch-apple .w-hr { font-size: 1.25rem; margin-top: 8px; }
.w-btns { display: flex; gap: 6px; width: 100%; margin-top: auto; }
.w-btns span {
  flex: 1; padding: 9px 0; border-radius: 999px; background: #2c2c34;
  font-size: 0.78rem; font-weight: 700;
}
.w-btns .w-end { background: #ff453a; }

.watch-round {
  right: 0; bottom: 46px; width: 208px; height: 208px; padding: 13px;
  border-radius: 50%; background: #2a2a31;
  box-shadow: 0 30px 50px -24px rgba(36, 26, 94, 0.6);
}
.watch-round::before { background: linear-gradient(#34343c, #1a1a22); }
.watch-round .watch-screen { border-radius: 50%; justify-content: center; }
.watch-round .w-time { font-size: 2.9rem; }
.watch-round .w-hr { font-size: 1.2rem; margin-top: 10px; }
.w-label {
  margin-top: 12px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #b9b9c4;
}

.w-name {
  position: absolute; width: 78px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  line-height: 1.35; color: var(--muted);
}
.w-name-apple { right: 0; top: 140px; }
.w-name-round { left: 0; bottom: 136px; text-align: right; }

@keyframes pulse { 50% { opacity: 0.25; } }

/* Screen 2: summary */
.ph-eyebrow { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); }
.ph-time { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.ph-sub { font-size: 0.82rem; color: var(--muted); }
.ph-group {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 16px 0 8px;
}
.ph-list li {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 12px; margin-bottom: 6px; font-size: 0.84rem; line-height: 1.3;
}
.ph-list div { flex: 1; }
.ph-list b { display: block; font-weight: 700; }
.ph-list small { color: var(--muted); font-size: 0.72rem; }
.ph-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); flex: none; }
.ph-list .unk { background: var(--orange-soft); border-color: #f3d3ae; }
.ph-list .unk .dot { background: var(--orange); }
.ph-list em { font-style: normal; font-weight: 700; font-size: 0.74rem; color: var(--purple); }

/* Screen 3: the activity on Strava */
.screen-strava { background: var(--white); color: #1a1a22; }
.st-posted {
  background: #e9f7ee; color: #1f7a3d; font-size: 0.76rem; font-weight: 700;
  padding: 8px 12px; border-radius: 10px; text-align: center;
}
.st-head { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 0.84rem; line-height: 1.3; }
.st-head b, .st-head small { display: block; }
.st-head small, .st-stats small { color: #6d6d78; font-size: 0.7rem; }
.st-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--lavender); flex: none; }
.st-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 12px; }
.st-stats { display: flex; gap: 28px; margin-top: 10px; padding-bottom: 14px; border-bottom: 1px solid #ececf0; }
.st-stats b { display: block; font-size: 1.1rem; }
.st-rows { margin-top: 6px; }
.st-rows li {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 9px 0; border-bottom: 1px solid #f2f2f5; font-size: 0.84rem;
}
.st-rows span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.st-by { margin-top: auto; font-size: 0.74rem; font-weight: 700; color: var(--strava); }

/* Footer */
.footer { padding: 28px 0; color: var(--muted); font-size: 0.88rem; text-align: center; }

/* Responsive: below three-across, the screens become a swipeable row */
@media (max-width: 1040px) {
  .phones {
    justify-content: flex-start; gap: 20px; margin-top: 48px; padding: 0 24px 24px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .phones::-webkit-scrollbar { display: none; }
  .phones::before, .phones::after { content: ""; flex: 1 0 calc(50vw - 174px); }
  .shot, .shot-mid { margin-top: 0; scroll-snap-align: center; }
  .monkey { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .brand img { height: 36px; }
  .hero { padding: 24px 0 48px; }
  .field { flex-direction: column; border-radius: 22px; padding: 8px; }
  .field input { padding: 12px 14px; text-align: center; }
  .phone { width: 264px; }
  .phones::before, .phones::after { flex-basis: calc(50vw - 166px); }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .rec-dot { animation: none; }
}
