@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Tokens. Dark is the designed default; light follows the system, like the app. */
:root {
  color-scheme: dark light;
  --bg: #000;
  --bg-2: #0a0a0a;
  --text: #ededee;
  --text-2: rgba(237, 237, 238, .66);
  --text-3: rgba(237, 237, 238, .54);  /* 5.3:1 on --bg */
  --line: rgba(255, 255, 255, .13);
  --line-guide: rgba(255, 255, 255, .06);
  --heading: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --gutter: 24px;
  --section: clamp(112px, 16vw, 224px);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --header: 64px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fff;
    --bg-2: #f5f5f7;
    --text: #0b0b0c;
    --text-2: rgba(11, 11, 12, .68);
    --text-3: rgba(11, 11, 12, .6);    /* 5.2:1 on --bg */
    --line: rgba(0, 0, 0, .12);
    --line-guide: rgba(0, 0, 0, .05);
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--text); color: var(--bg); }

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

a { color: inherit; }

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

.skip {
  position: absolute;
  left: var(--pad);
  top: 8px;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  z-index: 40;
  text-decoration: none;
}
.skip:focus { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Layout */

.page { position: relative; z-index: 1; }

.wrap {
  width: min(var(--container), 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gutter);
}
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* 13 hairlines on the 12 column edges, from 1024 px. */
.guides {
  display: none;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.guides-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.guides-inner span { border-left: 1px solid var(--line-guide); }
.guides-inner span:last-child { border-right: 1px solid var(--line-guide); }
@media (min-width: 1024px) {
  .guides { display: block; }
}

/* Header: one row at every width */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--heading);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand img {
  width: 24px;
  height: 24px;
  border-radius: 22.37%;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  margin-right: -6px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links .nav-wide { display: none; }
@media (min-width: 768px) {
  .nav-links { gap: 8px; margin-right: -10px; }
  .nav-links a { padding: 0 10px; }
  .nav-links span.nav-wide { display: inline; }
  .nav-links a.nav-wide { display: inline-flex; }
}

/* Type */

section[id] { scroll-margin-top: var(--header); }

h1, h2, .statement-text, .figure {
  font-family: var(--heading);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
}
h1 {
  font-size: clamp(2.5rem, 6.2vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.lead {
  margin: 20px 0 0;
  color: var(--text-2);
  font-size: 18px;
  max-width: 44ch;
  text-wrap: pretty;
}
.details {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  max-width: 46ch;
}
.details li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}
.details li:last-child { border-bottom: 1px solid var(--line); }

/* Screenshots: the real PNGs, frameless, with the display's corners and a hairline. */

.shot {
  display: block;
  width: min(100%, 320px);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13.7% / 6.3%;
  outline: 1px solid var(--line);
  outline-offset: -1px;
  background: var(--bg-2);
}
.shot-ipad { width: 100%; }
.shot-ipad img { border-radius: 1.8% / 2.4%; }

/* Hero */

.hero { padding-block: clamp(32px, 6vw, 72px) var(--section); }
.hero .grid { align-items: center; row-gap: 56px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line-inner { display: block; }
.hero .lead { margin-top: 28px; }
.hero-cta {
  margin: 32px 0 0;
  color: var(--text-2);
  font-size: 17px;
}
.hero-shot { justify-self: center; }
@media (min-width: 768px) {
  .hero-copy { grid-column: 1 / span 4; }
  .hero-shot { grid-column: 5 / span 2; justify-self: end; }
}
@media (min-width: 1024px) {
  .hero { min-height: calc(100svh - var(--header)); display: flex; align-items: center; padding-bottom: clamp(48px, 6vw, 96px); }
  .hero > .wrap { width: min(var(--container), 100%); }
  .hero-copy { grid-column: 1 / span 7; }
  .hero-shot { grid-column: 9 / span 4; justify-self: end; }
  .hero h1 .line-inner { white-space: nowrap; }
  .hero h1 { font-size: clamp(3.5rem, 5.3vw, 5rem); }
}

/* Statement and the legend of the hero screen */

.statement { padding-bottom: var(--section); }
.statement-text {
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 20ch;
}
.legend {
  margin: clamp(48px, 7vw, 96px) 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 var(--gutter);
}
.legend > div {
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
}
.legend dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.legend dd {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  max-width: 30ch;
}
@media (min-width: 768px) {
  .statement-text { grid-column: 1 / -1; }
  .legend { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .statement-text { grid-column: 1 / span 10; }
  .legend { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Logging: three steps. Stacked by default (text, then its screen);
   site.js pins them on wide screens and crossfades in place. */

.pin { padding-bottom: var(--section); }
.step { display: grid; gap: 40px; align-items: center; }
.step + .step { margin-top: clamp(80px, 12vw, 144px); }
.step-shot { justify-self: center; }
@media (min-width: 768px) {
  .step { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gutter); }
  .step-text { grid-column: 1 / span 3; }
  .step-shot { grid-column: 4 / span 3; justify-self: end; }
}
@media (min-width: 1024px) {
  .step { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .step-text { grid-column: 1 / span 5; }
  .step-shot { grid-column: 8 / span 4; justify-self: center; }
}
.pin.is-pinned {
  height: 100svh;
  padding: calc(var(--header) + 24px) 0 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pin.is-pinned .steps {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  gap: 0 var(--gutter);
}
.pin.is-pinned .step { display: contents; }
.pin.is-pinned .pin-eyebrow { grid-area: 1 / 1 / 2 / 6; }
.pin.is-pinned .step-text { grid-area: 2 / 1 / 3 / 6; align-self: start; }
.pin.is-pinned .step-shot { grid-area: 1 / 8 / 3 / 12; }
.pin.is-pinned .pin-count { grid-area: 2 / 1 / 3 / 6; align-self: end; }
.pin.is-pinned .shot { width: min(320px, calc((100svh - var(--header) - 120px) * .46)); }
.pin-eyebrow { margin-bottom: 28px; }
.pin-count {
  margin: 0;
  color: var(--text-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.pin-count { display: none; }
.pin.is-pinned .pin-count { display: block; }

/* Feature scenes */

.scene { padding-bottom: var(--section); }
.scene .grid { align-items: center; row-gap: 48px; }
.scene-media { justify-self: center; }
@media (min-width: 768px) {
  .scene-copy { grid-column: 1 / span 3; }
  .scene-media { grid-column: 4 / span 3; justify-self: end; }
  .scene-flip .scene-media { grid-column: 1 / span 3; grid-row: 1; justify-self: start; }
  .scene-flip .scene-copy { grid-column: 4 / span 3; grid-row: 1; }
}
@media (min-width: 1024px) {
  .scene-copy { grid-column: 1 / span 5; }
  .scene-media { grid-column: 8 / span 4; justify-self: center; }
  .scene-flip .scene-media { grid-column: 2 / span 4; justify-self: center; }
  .scene-flip .scene-copy { grid-column: 8 / span 5; }
}

/* Two screens side by side, the second set lower */
.pair {
  display: flex;
  gap: var(--gutter);
  align-items: flex-start;
  justify-content: center;
}
.pair .shot { width: min(50%, 300px); }
.pair .shot + .shot { margin-top: clamp(40px, 6vw, 88px); }
@media (min-width: 768px) {
  .scene-pair .scene-copy { grid-column: 1 / -1; }
  .scene-pair .scene-media { grid-column: 1 / -1; grid-row: auto; justify-self: center; }
}
@media (min-width: 1024px) {
  .scene-pair .scene-media { grid-column: 1 / span 7; grid-row: 1; justify-self: stretch; }
  .scene-pair .scene-copy { grid-column: 9 / span 4; grid-row: 1; }
}

/* Numbers */

.numbers {
  background: var(--bg-2);
  padding-block: clamp(64px, 8vw, 112px);
  margin-bottom: var(--section);
}
.num-row {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.num {
  display: flex;
  flex-direction: column-reverse;   /* the figure reads first; the label stays the dt */
  justify-content: flex-end;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.num dd { margin: 0; }
.num:last-child { border-bottom: 1px solid var(--line); }
.figure {
  font-size: clamp(3rem, 7vw, 6rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}
.num-label {
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  max-width: 24ch;
}
@media (min-width: 768px) {
  .num-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .num { padding: 8px 24px; border-top: 0; border-left: 1px solid var(--line); }
  .num:first-child { border-left: 0; padding-left: 0; }
  .num:last-child { border-bottom: 0; }
}

/* iPad */

.ipad { padding-bottom: var(--section); }
.ipad h2 { margin-bottom: 18px; }
.ipad .lead { margin: 0 0 clamp(32px, 5vw, 56px); }
.caption {
  margin: 16px 0 0;
  color: var(--text-3);
  font-size: 14px;
}

/* Gyms and data */

.split { padding-bottom: var(--section); }
.split .grid { row-gap: 88px; align-items: start; }
.split-col { align-content: start; }
@media (min-width: 768px) {
  .split-col { grid-column: span 3; }
}
@media (min-width: 1024px) {
  .split-col:first-child { grid-column: 1 / span 5; }
  .split-col:last-child { grid-column: 7 / span 6; }
}

/* Privacy statement */

.privacy-band { padding-bottom: var(--section); }
.privacy-band .details { max-width: 52ch; margin-top: 40px; }
.privacy-band .details li { font-size: 17px; color: var(--text-2); }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  color: var(--text);
  text-underline-offset: 4px;
}
.privacy-band .inner { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .privacy-band .inner { grid-column: 1 / span 9; }
}

/* Closing */

.closing { padding-bottom: calc(var(--section) * .7); }
.closing h2 { font-size: clamp(2.5rem, 6.2vw, 5.75rem); letter-spacing: -0.035em; line-height: 1.02; }
.closing p { margin: 28px 0 0; color: var(--text-2); font-size: 18px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 48px;
  color: var(--text-3);
  font-size: 13px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-bottom: 12px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); }
.site-footer p { margin: 8px 0 0; }
.legal { max-width: 78ch; }

/* Reading pages: support, privacy, 404 */

.prose {
  width: min(68ch, 100%);
  padding-block: clamp(48px, 8vw, 96px) var(--section);
}
@media (min-width: 1024px) {
  .prose { margin-left: max(var(--pad), calc((100% - var(--container)) / 2 + var(--pad))); }
}
.prose h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 20px;
}
.prose h2 {
  font-family: var(--heading);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 2.6rem 0 .6rem;
}
.prose p, .prose li { color: var(--text-2); font-size: 17px; line-height: 1.6; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-underline-offset: 3px; }
.prose ul { padding-left: 1.1rem; }
.prose li + li { margin-top: .4rem; }
.mail {
  font-family: var(--heading);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.mail-plain { color: var(--text-2); }
.req { margin-top: 28px; }
details {
  border-top: 1px solid var(--line);
  padding: 4px 0 12px;
}
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
/* A plus that becomes a minus: the vertical bar's height goes to 0. */
summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  color: var(--text-3);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: background-size .3s var(--ease), color .2s var(--ease);
}
summary:hover::after { color: var(--text); }
details[open]:not(.is-closing) > summary::after { background-size: 12px 1.5px, 1.5px 0; }
@media (prefers-reduced-motion: reduce) {
  summary::after { transition: none; }
}
details p { margin-top: 4px; }
.effective { color: var(--text-3); font-size: 14px; }

/* Motion fallbacks: hidden intro states exist only while site.js runs them. */

@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-intro] { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header { transition: none; }
}
