/* Outgym — site styles.
   The app's own language: stage black, signal green, compressed numerals, expanded small caps.
   System fonts only: on the devices this page is for, that is San Francisco, the app's typeface. */

:root {
  --paper: #f3f2ee;
  --paper-2: #e9e7e1;
  --ink: #0b0d0f;
  --ink-2: #4a4f55;
  --ink-3: #82878d;
  --hairline: rgba(11, 13, 15, 0.14);
  --signal: #05875d;        /* the app's green on light surfaces */
  --signal-bright: #3deba6; /* and on the stage */
  --on-signal: #04150e;
  --chip-ink: #ffffff;
  --caution: #a8650b;
  --caution-bg: #f1e4d0;
  --fault: #d63b41;
  --fault-bg: #f6dcdd;
  --stage: #0b0d0f;
  --stage-2: #15181b;
  --stage-ink: #f2f1ec;
  --stage-ink-2: rgba(242, 241, 236, 0.66);
  --stage-hairline: rgba(242, 241, 236, 0.16);
  --thermal: linear-gradient(90deg, #1d4ed8, #8b2fc9 22%, #e8322c 45%, #ff7a1a 66%, #ffd23f 86%, #fff6d6);
  --sans: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --measure: 34rem;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-screen: clamp(26px, 3.2vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0d0f;
    --paper-2: #15181b;
    --ink: #f2f1ec;
    --ink-2: #b3b6ba;
    --ink-3: #82878d;
    --hairline: rgba(242, 241, 236, 0.16);
    --signal: #3deba6;
    --chip-ink: #04150e;
    --caution: #ffc247;
    --caution-bg: rgba(255, 194, 71, 0.16);
    --fault: #f2555a;
    --fault-bg: rgba(242, 85, 90, 0.16);
    --stage-2: #1b1f23;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* The two voices of the app's type: heavy and compressed for what matters, small expanded caps
   for what labels it. */
.display {
  font-weight: 900;
  font-stretch: 68%;
  font-variation-settings: "wdth" 68;
  letter-spacing: -0.015em;
  text-transform: none;
}

.label {
  font-size: 0.75rem;
  font-weight: 650;
  font-stretch: 120%;
  font-variation-settings: "wdth" 120;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lede { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); max-width: var(--measure); }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }

.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 1.6rem; line-height: 1; }
.wordmark::before { content: ""; width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--signal); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav a.button, .nav a.button:hover { color: var(--paper); }
.nav .hide-s { display: none; }
@media (min-width: 720px) { .nav .hide-s { display: inline; } }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0.8em 1.25em; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 650; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button.small { padding: 0.55em 1em; font-size: 0.875rem; }
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hairline); }
.button[aria-disabled="true"] { cursor: default; }
.button[aria-disabled="true"]:hover { transform: none; }

/* Hero */

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 104px); }
.hero .wrap { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); } }

.hero h1 { font-size: clamp(3.6rem, 10.6vw, 9rem); line-height: 0.88; margin: 18px 0 28px; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 14px; font-size: 0.875rem; color: var(--ink-3); }

/* A set, the way the app writes it down. */
.repstrip { display: flex; flex-wrap: wrap; gap: 6px; margin: 44px 0 10px; padding: 0; list-style: none; }
.chip {
  width: 38px; height: 50px; border-radius: 11px;
  display: grid; place-items: center; align-content: center; gap: 1px;
  font-weight: 800; font-size: 0.95rem; line-height: 1;
  background: var(--signal); color: var(--chip-ink);
}
.chip small { font-size: 0.68rem; font-weight: 650; opacity: 0.85; }
.chip.minor { background: var(--caution-bg); color: var(--caution); }
.chip.major { background: var(--fault-bg); color: var(--fault); }
.repstrip-caption { font-size: 0.875rem; color: var(--ink-3); }
@media (max-width: 420px) { .repstrip { gap: 5px; } .repstrip .chip { width: 34px; height: 46px; } }

.reveal .chip { opacity: 0; transform: scale(0.6); transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1); transition-delay: calc(var(--i) * 70ms); }
.reveal.seen .chip { opacity: 1; transform: none; }

/* A phone screen: the screenshot already has everything but the corners. */
.screen {
  position: relative; overflow: hidden;
  border-radius: var(--radius-screen);
  background: var(--stage);
  box-shadow: 0 0 0 1px var(--hairline), 0 30px 60px -28px rgba(11, 13, 15, 0.45);
}
.screen img, .screen video { width: 100%; }
.screen.tall { aspect-ratio: 9 / 16; }
.screen.tall video { height: 100%; object-fit: cover; }
/* A screen recording keeps the phone's own proportions. */
.screen.phone { aspect-ratio: 1206 / 2622; }
.screen.phone video { height: 100%; object-fit: cover; }

/* Never taller than the window it opens in. */
.hero-screen { width: min(100%, 380px, calc((100svh - 200px) * 9 / 16)); min-width: 250px; margin-inline: auto; }

.sound {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.55em 0.95em; border-radius: 999px; border: 0; cursor: pointer;
  font: 650 0.8125rem var(--sans); color: var(--stage-ink);
  background: rgba(11, 13, 15, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--stage-hairline);
}
.sound[aria-pressed="true"] { background: var(--signal-bright); color: var(--on-signal); box-shadow: none; }
.sound svg { width: 15px; height: 15px; }

/* Sections */

.section { padding: clamp(64px, 9vw, 136px) 0; border-top: 1px solid var(--hairline); }
.section h2 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 0.92; margin: 14px 0 26px; max-width: 12ch; }
.section h2.wide { max-width: 16ch; }

.split { display: grid; gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr); }
  .split.flip > :first-child { order: 2; }
}
.split .screen { width: min(100%, 360px); margin-inline: auto; }

/* Verdicts */
.verdicts { margin: 34px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); max-width: 36rem; }
.verdicts li { display: grid; grid-template-columns: 50px 1fr; gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.verdicts .chip { width: 42px; height: 42px; font-size: 1.15rem; }
.verdicts strong { display: block; font-size: 1.125rem; }
.verdicts span { color: var(--ink-2); }

/* The video band: the stage itself. */
.stage { background: var(--stage); color: var(--stage-ink); border-top: 0; position: relative; }
.stage::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--thermal); }
.stage .label { color: var(--stage-ink-2); }
.stage .lede { color: var(--stage-ink-2); }
.stage h2 { max-width: 11ch; }
.stage .screen { box-shadow: 0 0 0 1px var(--stage-hairline); }

.reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 26px); margin-top: clamp(40px, 6vw, 72px); max-width: 960px; }
.reel figure { margin: 0; }
.reel figcaption { margin-top: 12px; display: flex; justify-content: space-between; gap: 8px; font-size: 0.8125rem; color: var(--stage-ink-2); }
.reel figcaption b { color: var(--stage-ink); font-weight: 650; }
@media (max-width: 640px) {
  .reel { grid-template-columns: repeat(3, 72vw); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .reel::-webkit-scrollbar { display: none; }
  .reel figure { scroll-snap-align: center; }
}

.in-video { display: grid; gap: 0; margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--stage-hairline); }
@media (min-width: 760px) { .in-video { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
.in-video li { padding: 16px 0; border-bottom: 1px solid var(--stage-hairline); display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; }
.in-video li span { color: var(--stage-ink-2); }

.heat-note { display: grid; gap: 14px; margin-top: 44px; max-width: 44rem; }
.heat-bar { height: 8px; width: 200px; border-radius: 99px; background: var(--thermal); }
.heat-note p { margin: 0; color: var(--stage-ink-2); }
.heat-note p b { color: var(--stage-ink); font-weight: 650; }

/* Steps */
.steps { margin: 36px 0 0; padding: 0; list-style: none; counter-reset: step; max-width: 36rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 4.2rem 1fr; gap: 8px; padding: 20px 0; border-top: 1px solid var(--hairline); }
.steps li::before { content: counter(step, decimal-leading-zero); font-weight: 900; font-stretch: 68%; font-variation-settings: "wdth" 68; font-size: 2.6rem; line-height: 0.9; color: var(--signal); }
.steps strong { display: block; font-size: 1.125rem; margin-bottom: 2px; }
.steps span { color: var(--ink-2); }

/* Numbers */
.excerpts { display: grid; gap: clamp(16px, 2.5vw, 28px); align-items: start; }
@media (min-width: 760px) { .excerpts { grid-template-columns: 1fr 1fr; } }
.excerpt { border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 1px var(--hairline); background: #fff; }
.honest { margin: 36px 0 0; padding: 0; list-style: none; max-width: 38rem; }
.honest li { padding: 14px 0; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; }
.honest li span { color: var(--ink-2); }

/* Exercises */
.exercises { width: 100%; border-collapse: collapse; margin-top: 40px; }
.exercises th, .exercises td { text-align: left; vertical-align: baseline; padding: 20px 16px 20px 0; border-top: 1px solid var(--hairline); }
.exercises th { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 0.95; width: 38%; }
.exercises td { color: var(--ink-2); }
.exercises td.how { color: var(--ink-3); font-size: 0.9375rem; white-space: nowrap; }
.exercises .beta { font: 650 0.6875rem var(--sans); letter-spacing: 0.12em; vertical-align: middle; margin-left: 10px; padding: 3px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--hairline); color: var(--ink-3); }
@media (max-width: 720px) {
  .exercises, .exercises tbody, .exercises tr, .exercises th, .exercises td { display: block; width: 100%; }
  .exercises th { padding-bottom: 6px; }
  .exercises td { border-top: 0; padding: 0 0 4px; }
  .exercises td.how { padding-bottom: 20px; white-space: normal; }
}

/* Privacy statement */
.private h2 { max-width: 13ch; }
.leaves { margin-top: 28px; padding: 22px 24px; border-radius: 20px; background: var(--paper-2); max-width: 40rem; }
.leaves p { margin: 0; color: var(--ink-2); }
.leaves p + p { margin-top: 10px; }

/* FAQ */
.faq { max-width: 46rem; margin-top: 28px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 650; font-size: 1.125rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--ink-3); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); max-width: 40rem; padding-bottom: 8px; }

/* Closing */
.closing { text-align: left; }
.closing h2 { font-size: clamp(3.2rem, 9vw, 8rem); max-width: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0 56px; font-size: 0.875rem; color: var(--ink-3); }
.site-footer .wrap { display: grid; gap: 22px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer p { margin: 0; max-width: 44rem; }

/* Legal pages */
.legal { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 120px); }
.legal .wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .legal .wrap { grid-template-columns: 15rem minmax(0, 44rem); gap: 72px; } }
.legal h1 { font-size: clamp(3rem, 7vw, 5.6rem); line-height: 0.92; margin: 12px 0 18px; }
.legal h2 { font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.2; margin: 2.4em 0 0.6em; scroll-margin-top: 84px; }
.legal h3 { font-size: 1.0625rem; letter-spacing: 0; line-height: 1.35; margin: 1.6em 0 0.4em; }
.legal article p, .legal article li { color: var(--ink-2); }
.legal article a { color: var(--ink); text-underline-offset: 3px; }
.legal article ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal article li { margin-bottom: 0.4em; }
.legal .toc { position: sticky; top: 92px; align-self: start; font-size: 0.9375rem; display: none; }
@media (min-width: 960px) { .legal .toc { display: block; } }
.legal .toc ol { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.legal .toc a { color: var(--ink-2); text-decoration: none; }
.legal .toc a:hover { color: var(--ink); }
.short { margin: 28px 0 8px; padding: 24px 26px; border-radius: 20px; background: var(--paper-2); }
.short h2 { margin-top: 0; font-size: 1.125rem; }
.short ul { margin-bottom: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-top: 1px solid var(--hairline); color: var(--ink-2); }
.legal th { color: var(--ink); font-weight: 650; }
.legal .table-scroll { overflow-x: auto; }
mark.todo { background: #ffe27a; color: #2b2300; padding: 0 0.25em; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal .chip { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}
