/* Sport MCP — site styles. Mirrors the app: white/black surfaces, one blue
   accent, gray controls, hairline borders. System type (SF Pro on Apple). */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --fill: #eef0f2;
  --fill-dim: #f6f7f8;
  --line: #e4e7ea;
  --text: #2b3238;
  --text-2: #6f767c;
  --text-3: #a9aeb3;
  --accent: #2d9cf0;
  --accent-ink: #1b7fd6;
  --accent-soft: rgba(45, 156, 240, 0.13);
  --green: #2db86a;
  --green-soft: rgba(45, 184, 106, 0.18);
  --yellow: #f5b82e;
  --frame: #14171a;

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --page: 1120px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --fill: #2c2c2e;
    --fill-dim: #232325;
    --line: #38383a;
    --text: #ffffff;
    --text-2: #a1a5ab;
    --text-3: #636569;
    --accent: #3aa5f5;
    --accent-ink: #6bbcf8;
    --accent-soft: rgba(58, 165, 245, 0.18);
    --green: #30c474;
    --green-soft: rgba(48, 196, 116, 0.2);
    --yellow: #ffc940;
    --frame: #2c2c2e;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  color-scheme: light dark;
}

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

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  margin: 0;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

.num {
  font-variant-numeric: tabular-nums;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.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);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  color: var(--text-2);
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav .btn {
  color: #fff;
}

@media (max-width: 720px) {
  .nav a:not(.btn) {
    display: none;
  }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.12s;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.88;
}

.btn:active {
  opacity: 0.65;
}

.btn.small {
  height: 36px;
  padding: 0 14px;
  font-size: 15px;
  border-radius: 8px;
}

.btn.soft {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.btn.neutral {
  background: var(--fill);
  color: var(--text);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 88px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero .lead {
  margin-top: 24px;
  max-width: 33em;
  font-size: 20px;
  line-height: 1.45;
  color: var(--text-2);
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero .note {
  margin-top: 18px;
  font-size: 15px;
  color: var(--text-2);
}

@media (max-width: 940px) {
  .hero {
    padding: 48px 0 64px;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
}

/* ── Hero demo: a message, then the workout it produced ─────────────────── */

.demo {
  display: grid;
  gap: 12px;
}

.bubble {
  max-width: 86%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.4;
}

.bubble.me {
  justify-self: end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.bubble.ai {
  justify-self: start;
  background: var(--fill);
  color: var(--text);
  border-bottom-left-radius: 6px;
}

.log {
  margin-top: 6px;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.log-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.log-top h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.log-top .clock {
  margin-top: 3px;
  font-size: 14px;
  color: var(--text-2);
}

.finish {
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.finish:active {
  opacity: 0.65;
}

.log .exercise {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent-ink);
}

.sets {
  width: 100%;
  margin-top: 8px;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-variant-numeric: tabular-nums;
}

.sets th {
  padding: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.sets td {
  padding: 3px 4px;
  text-align: center;
  font-size: 16px;
  transition: background 0.15s;
}

.sets td:first-child {
  border-radius: 8px 0 0 8px;
  padding-left: 4px;
}

.sets td:last-child {
  border-radius: 0 8px 8px 0;
  padding-right: 4px;
}

.sets .chip,
.sets .cell,
.sets .check {
  display: grid;
  place-items: center;
  height: 30px;
  border-radius: 6px;
  background: var(--fill);
  font-weight: 600;
}

.sets .chip {
  width: 36px;
}

.sets .cell {
  min-width: 58px;
  color: var(--text-3);
}

.sets .prev {
  color: var(--text-3);
  font-size: 15px;
}

.sets .check {
  width: 40px;
  margin-left: auto;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.sets .check svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sets tr.done td {
  background: var(--green-soft);
}

.sets tr.done .chip,
.sets tr.done .cell {
  background: transparent;
  color: var(--text);
}

.sets tr.done .check {
  background: var(--green);
  color: #fff;
}

.sets tr.pr .chip {
  color: var(--yellow);
}

.rest {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 0;
  margin-top: 0;
  overflow: hidden;
  font-size: 14px;
  color: var(--text-2);
  transition: height 0.2s, margin-top 0.2s;
}

.rest.on {
  height: 22px;
  margin-top: 10px;
}

.rest .bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--fill);
  overflow: hidden;
}

.rest .bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
}

.rest b {
  min-width: 3.2em;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.log .result {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-2);
  min-height: 22px;
}

.demo-hint {
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section > .wrap > h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 18em;
}

.section > .wrap > .intro {
  margin-top: 16px;
  max-width: 36em;
  font-size: 19px;
  color: var(--text-2);
}

@media (max-width: 720px) {
  .section {
    padding: 60px 0;
  }
}

/* How it works: a real sequence, so it is numbered. */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line);
}

.steps li {
  counter-increment: step;
  padding: 24px 24px 0 0;
  position: relative;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 6px;
  background: var(--fill);
  font-weight: 600;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.steps li::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--accent);
}

.steps h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.steps p {
  margin-top: 8px;
  font-size: 16px;
  color: var(--text-2);
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Screens */

.screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 52px;
}

.screen figure {
  margin: 0;
}

.phone {
  border: 7px solid var(--frame);
  border-radius: 38px;
  overflow: hidden;
  background: var(--frame);
  aspect-ratio: 600 / 1305;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 31px;
}

.screen figcaption {
  margin-top: 18px;
}

.screen figcaption b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.screen figcaption span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--text-2);
}

@media (max-width: 900px) {
  .screens {
    grid-template-columns: repeat(4, 72vw);
    gap: 20px;
    margin-right: calc(var(--gutter) * -1);
    margin-left: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .screen {
    scroll-snap-align: center;
  }
}

@media (max-width: 900px) and (min-width: 560px) {
  .screens {
    grid-template-columns: repeat(4, 300px);
  }
}

/* Prompts */

.asks {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: start;
}

.asks h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.asks .intro {
  margin-top: 16px;
  font-size: 19px;
  color: var(--text-2);
}

.prompts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prompts li {
  justify-self: end;
  max-width: 30em;
  padding: 12px 16px;
  border-radius: 18px 18px 6px 18px;
  background: var(--fill);
  font-size: 17px;
  line-height: 1.4;
}

.prompts li:nth-child(odd) {
  background: var(--accent-soft);
}

@media (max-width: 860px) {
  .asks {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .prompts li {
    justify-self: start;
    border-radius: 18px 18px 18px 6px;
  }
}

/* Connect */

.connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  margin-top: 48px;
  align-items: start;
}

.address {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  border-radius: 12px;
  background: var(--fill);
}

.address code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.address + p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-2);
}

.connect-address {
  position: sticky;
  top: 92px;
}

/* One set of steps per assistant, chosen with the picker. */

.picker {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.tabbed .picker {
  display: grid;
}

.picker button {
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--fill);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.picker button[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
}

.assistant + .assistant {
  margin-top: 48px;
}

.tabbed .assistant + .assistant {
  margin-top: 0;
}

.assistant h3 {
  font-size: 22px;
  font-weight: 700;
}

.tabbed .assistant h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.needs {
  margin: 8px 0 24px;
  font-size: 16px;
  color: var(--text-2);
}

.tabbed .needs {
  margin-top: 0;
}

.asks {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-2);
}

.how {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
}

.how li {
  counter-increment: how;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.how li:first-child {
  padding-top: 0;
  border-top: 0;
}

.how li::before {
  content: counter(how);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.how b {
  display: block;
  font-size: 17px;
  font-weight: 700;
}

.how span {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  color: var(--text-2);
}

.how strong {
  font-weight: 600;
  color: var(--text);
}

.how .say {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 12px 12px 16px;
  border-radius: 12px;
  background: var(--fill);
  color: var(--text);
}

.say q {
  flex: 1;
  min-width: 0;
  quotes: none;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .connect {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .connect-address {
    position: static;
  }
}

/* What's in the app: a plain list, not a card grid. */

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
  margin: 40px 0 0;
}

.details div {
  display: grid;
  grid-template-columns: 11em minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.details dt {
  font-weight: 700;
}

.details dd {
  margin: 0;
  color: var(--text-2);
}

@media (max-width: 860px) {
  .details {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .details div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

/* FAQ */

.faq {
  margin-top: 36px;
  max-width: 46em;
  border-bottom: 1px solid var(--line);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.15s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq details p {
  padding: 0 0 20px;
  max-width: 40em;
  color: var(--text-2);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-2);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a {
  color: var(--text-2);
}

.site-footer a:hover {
  color: var(--text);
}

/* ── Document pages (privacy, terms, support) ───────────────────────────── */

.doc {
  padding: 64px 0 96px;
}

.doc .wrap {
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.doc .updated {
  margin-top: 12px;
  color: var(--text-2);
}

.doc h2 {
  margin-top: 44px;
  font-size: 24px;
  font-weight: 700;
}

.doc h3 {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.doc p,
.doc ul,
.doc ol {
  margin-top: 14px;
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li {
  margin-top: 6px;
}

.doc .callout {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--accent-soft);
}

@media (max-width: 560px) {
  .how .say {
    flex-direction: column;
    align-items: flex-end;
  }

  .say q {
    align-self: stretch;
  }
}
