/* Fjell website: tokens, base type, layout, header, footer and shared components (used by every page), then the
   landing page sections. Light only. Colour means something: ember for effort, green and amber for the zone, stage
   colours for stages. Long-form pages add prose.css on top of this file. */

/* Fonts: Geist (SIL Open Font License, see ../fonts/OFL.txt). Three weights; 500 would fall back to 400. WOFF2 first
   (every page preloads Regular and SemiBold as .woff2), OTF only for browsers without WOFF2. */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Regular.woff2") format("woff2"), url("../fonts/Geist-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-SemiBold.woff2") format("woff2"), url("../fonts/Geist-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Bold.woff2") format("woff2"), url("../fonts/Geist-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #F3F2EE;
  --card: #FFFFFF;
  --ink: #1A1917;
  --ink-2: #6E6B64;
  --ink-3: #A8A49C; /* decoration only: too light for text */
  --hairline: rgba(26, 25, 23, .09);
  --sunken: rgba(26, 25, 23, .06);
  --ember: #EE4D38;
  --work: #DD4128;
  --work-deep: #AE3120;
  --green: #0D7A43;
  --green-fill: #2DB06A;
  --amber: #A85A00;
  --amber-fill: #F2A33A;
  --rec-fill: #5B8DC5;
  --rec-tint: #D5E4F3;
  --rec-deep: #245893;
  --easy-fill: #CBB58F;
  --easy-tint: #ECE2CF;
  --easy-deep: #6B5634;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1120px;
  --measure: 68ch;
  --gutter: 16px;
}
@media (min-width: 600px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
}

/* Base */

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-synthesis: style;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p, ul, ol, dl, figure, blockquote {
  margin: 0;
}

p, li {
  text-wrap: pretty;
}

img, svg, video {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(26, 25, 23, .45);
  text-underline-offset: .2em;
}
a:hover {
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

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

::selection {
  background: rgba(26, 25, 23, .14);
}

/* Utilities */

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

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: var(--gutter);
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
}

/* Type helpers */

.eyebrow {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.fineprint {
  color: var(--ink-2);
  font-size: .875rem;
  line-height: 1.5;
}

/* Sections */

.section {
  padding-top: clamp(72px, 9vw, 128px);
}

.section__head {
  max-width: 48rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 1.45rem + 2.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.button:hover {
  background: #36332F;
  color: #fff;
}
.button:active {
  background: #000;
}
.button .icon {
  width: 16px;
  height: 16px;
}

.button--quiet {
  background: var(--sunken);
  color: var(--ink);
}
.button--quiet:hover {
  background: rgba(26, 25, 23, .11);
  color: var(--ink);
}
.button--quiet:active {
  background: rgba(26, 25, 23, .16);
}

/* Cards */

.card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
}
@media (min-width: 600px) {
  .card { padding: 28px; }
}
@media (min-width: 1024px) {
  .card { padding: 32px; }
}

/* Disclosure (FAQ and anywhere else) */

details {
  border-top: 1px solid var(--hairline);
}
details:last-of-type {
  border-bottom: 1px solid var(--hairline);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
details[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}
details > :not(summary) {
  max-width: var(--measure);
}
details[open] {
  padding-bottom: 18px;
}
details > p + p {
  margin-top: 10px;
}
@media (prefers-reduced-motion: no-preference) {
  summary::after { transition: transform .2s ease; }
}

/* Header */

.site-header {
  background: var(--paper);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  min-height: 72px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover {
  color: var(--ink);
}
.brand__mark {
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
}
.brand__name {
  line-height: 1.2;
}
.brand--small {
  gap: 8px;
  font-size: 1rem;
}
.brand--small .brand__mark {
  width: 24px;
  height: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  margin-right: -8px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  border-radius: 8px;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
@media (max-width: 359px) {
  .brand { gap: 8px; }
  .brand__mark { width: 28px; height: 28px; }
  .site-nav a { padding-inline: 6px; font-size: .875rem; }
  .site-nav { margin-right: -6px; }
}

/* Footer */

.site-footer {
  margin-top: clamp(72px, 10vw, 136px);
  padding-block: 36px 48px;
  border-top: 1px solid var(--hairline);
}
.site-footer__inner {
  display: grid;
  gap: 12px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
  font-size: .9375rem;
  text-decoration: none;
}
.footer-nav a:hover {
  text-decoration: underline;
}
.footer-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.site-footer .fineprint {
  max-width: var(--measure);
}
@media (min-width: 760px) {
  .site-footer__inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 32px;
  }
  .site-footer__inner > .footer-nav {
    justify-content: flex-end;
  }
  .site-footer__inner > .fineprint {
    grid-column: 1 / -1;
  }
  .site-footer__inner > .fineprint:first-of-type {
    margin-top: 12px;
  }
}

/* Store call to action */

.store-cta {
  margin: 0;
}
.store-cta--soon {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--sunken);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.35;
}
.store-cta--live {
  display: inline-block;
  border-radius: 10px;
  line-height: 0;
}
.store-cta--live img {
  width: auto;
  height: 50px;
}

/* ============================== Landing page ============================== */

/* Hero */

.hero {
  padding-top: clamp(24px, 5vw, 72px);
}
.hero__text {
  max-width: 54rem;
}
.hero__title {
  font-size: clamp(3rem, 1.7rem + 6.4vw, 6.5rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -0.045em;
}
.hero__subtitle {
  max-width: 24ch;
  margin-top: 18px;
  font-size: clamp(1.375rem, 1.12rem + 1.15vw, 2.125rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__lede {
  max-width: 34em;
  margin-top: 18px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.hero__price {
  margin-top: 20px;
  font-size: 1.0625rem;
  font-weight: 600;
}
.hero__terms {
  max-width: 38em;
  margin-top: 2px;
}

.hero-graph {
  margin-top: clamp(36px, 6vw, 72px);
}
.hero-graph__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.hero-graph__target {
  fill: var(--ember);
}
.hero-graph__base {
  stroke: rgba(26, 25, 23, .16);
  stroke-width: 2px;
}
/* Stroke widths are in viewBox units (1200 wide), stepped so the line renders at about 3 px at every width. */
.hero-graph__line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 10px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (min-width: 420px) {
  .hero-graph__line { stroke-width: 7.5px; }
}
@media (min-width: 600px) {
  .hero-graph__line { stroke-width: 5px; }
}
@media (min-width: 900px) {
  .hero-graph__line { stroke-width: 3.6px; }
}
/* The line draws itself once. pathLength="1" makes one dash the whole line; starting at 1.01 rather than 1 keeps a
   zero-length dash (a round-cap dot) off the start of the line. Without the media query match (reduced motion) the
   line is simply there. */
@media (prefers-reduced-motion: no-preference) {
  .hero-graph__line {
    stroke-dasharray: 1 2;
    stroke-dashoffset: 1.01;
    animation: hero-draw 2.5s cubic-bezier(.22, .61, .36, 1) .2s both;
  }
}
@keyframes hero-draw {
  from { stroke-dashoffset: 1.01; }
  to { stroke-dashoffset: 0; }
}
.hero-graph__axis {
  position: relative;
  height: 20px;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}
.hero-graph__axis span {
  position: absolute;
  top: 0;
  white-space: nowrap;
  transform: translateX(-50%);
}
.hero-graph__axis span:nth-child(1) { left: 0; transform: none; }
.hero-graph__axis span:nth-child(2) { left: 25%; }
.hero-graph__axis span:nth-child(3) { left: 50%; }
.hero-graph__axis span:nth-child(4) { left: 75%; }
.hero-graph__axis span:nth-child(5) { left: 100%; transform: translateX(-100%); }
.hero-graph__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: .875rem;
}

.key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.key::before {
  content: "";
  flex: none;
  width: 16px;
  height: 10px;
  border-radius: 2px;
  background: var(--ember);
}
.key--line::before {
  height: 3px;
  background: var(--ink);
}

/* The halfway check widget */

.hw {
  display: grid;
  gap: 16px;
}
.hw__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hw__play {
  min-width: 116px;
}
@media (min-width: 760px) {
  .hw {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "screen controls"
      "screen chart"
      "screen voice";
    gap: 16px 24px;
    align-items: start;
  }
  .hw__controls { grid-area: controls; }
  .hw-screen { grid-area: screen; }
  .hw-chart { grid-area: chart; }
  .hw-voice { grid-area: voice; }
}
@media (min-width: 1024px) {
  .hw { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
}

.segmented {
  display: inline-flex;
  min-width: 0;
  margin: 0;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: var(--sunken);
}
.segmented__option {
  position: relative;
  display: flex;
}
.segmented__option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
/* Text stays ink on both (ink-2 on the sunken track is under 4.5:1); the ink ring marks the choice at 3:1 or more. */
.segmented__option span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
}
.segmented__option input:checked + span {
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.segmented__option input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* The running screen, echoed: time on a block in the work colour, heart rate on white below it. All type on the
   block is large or bold enough for white on #DD4128 (4.3:1) to pass as large text. */
.hw-screen {
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--card);
}
@media (min-width: 760px) {
  .hw-screen { max-width: none; }
}
.hw-time {
  padding: 16px 20px 18px;
  border-radius: 0 0 28px 28px;
  background: var(--work);
  color: #fff;
}
.hw-time__stage {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hw-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
  margin-top: 12px;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hw-label--ink {
  margin-top: 0;
  color: var(--ink-2);
}
.hw-time__figure {
  margin-top: 4px;
  font-size: clamp(4.5rem, 3.6rem + 4vw, 6.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hw-bar {
  position: relative;
  height: 22px;
  margin-top: 12px;
}
.hw-bar__track,
.hw-bar__fill {
  position: absolute;
  top: 7px;
  left: 0;
  height: 8px;
  border-radius: 4px;
}
.hw-bar__track {
  right: 0;
  background: rgba(255, 255, 255, .3);
}
.hw-bar__fill {
  background: #fff;
}
.hw-bar__tick {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 22px;
  margin-left: -1.5px;
  border-radius: 1.5px;
  background: #fff;
}
.hw-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 2.6em;
  margin-top: 10px;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}
.hw-status .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.hw-heart {
  padding: 18px 20px 22px;
}
.icon--heart {
  width: 18px;
  height: 18px;
  color: var(--ember);
}
.hw-heart__figure {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  margin-top: 4px;
}
.hw-heart__bpm {
  font-size: clamp(4rem, 3.3rem + 3.2vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hw-heart__unit {
  color: var(--ink-2);
  font-size: 1.25rem;
  font-weight: 600;
}
.is-below { color: var(--ink); }
.is-in { color: var(--green); }
.is-above { color: var(--amber); }

/* Gauge: the zone with 30 bpm of room below and 22 bpm above, as in the app. */
.hw-gauge {
  position: relative;
  height: 82px;
  margin-top: 14px;
}
.hw-gauge__track {
  position: absolute;
  top: 14px;
  right: 0;
  left: 0;
  height: 6px;
  border-radius: 3px;
  background: rgba(26, 25, 23, .1);
}
.hw-gauge__band {
  position: absolute;
  top: 6px;
  left: 48.39%;
  width: 16.13%;
  height: 22px;
  border-radius: 5px;
  background: var(--green-fill);
}
.hw-gauge__needle {
  position: absolute;
  top: 0;
  width: 5px;
  height: 34px;
  margin-left: -2.5px;
  border-radius: 2.5px;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--card);
}
.hw-gauge__edge {
  position: absolute;
  top: 40px;
  display: grid;
  line-height: 1.15;
}
.hw-gauge__edge--min {
  right: 51.61%;
  padding-right: 2px;
  text-align: right;
}
.hw-gauge__edge--max {
  left: 64.52%;
  padding-left: 2px;
}
.hw-gauge__value {
  font-size: 1.25rem;
  font-weight: 600;
}
.hw-gauge__caption {
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 600;
}
.hw-zone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
  margin-top: 4px;
  font-size: 1.125rem;
  line-height: 1.35;
}
.hw-zone__headline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.hw-zone__headline .icon {
  width: 18px;
  height: 18px;
}
.hw-zone__coach {
  color: var(--ink-2);
}

/* Chart: HTML scaffolding around one stretched SVG polyline, so the text stays the same size at every width. */
.hw-chart {
  padding: 18px 20px 14px;
}
.hw-chart__frame {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: 26px 176px 26px;
}
.hw-chart__unit {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  color: var(--ink-2);
  font-size: .75rem;
  font-weight: 600;
}
.hw-chart__y {
  position: relative;
  grid-column: 1;
  grid-row: 2;
}
.hw-chart__y span,
.hw-chart__x span {
  position: absolute;
  color: var(--ink-2);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.hw-chart__y span {
  right: 8px;
  transform: translateY(-50%);
}
.hw-chart__plot {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  border-bottom: 1px solid rgba(26, 25, 23, .2);
}
.hw-chart__grid {
  position: absolute;
  right: 0;
  left: 0;
  height: 0;
  border-top: 1px solid var(--hairline);
}
.hw-chart__band {
  position: absolute;
  top: 16.25%;
  right: 0;
  left: 0;
  height: 12.5%;
  background: rgba(45, 176, 106, .24);
  box-shadow: inset 0 2px 0 var(--green-fill), inset 0 -2px 0 var(--green-fill);
}
.hw-chart__halfway {
  position: absolute;
  top: -22px;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
  border-left: 2px dashed var(--ink-2);
}
.hw-chart__halfway-label {
  position: absolute;
  top: -4px;
  left: 6px;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.hw-chart__svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hw-chart__line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.hw-chart__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--card);
}
.hw-chart__x {
  position: relative;
  grid-column: 2;
  grid-row: 3;
}
.hw-chart__x span {
  top: 8px;
  transform: translateX(-50%);
}
.hw-chart__x span:nth-child(1) { left: 0; transform: none; }
.hw-chart__x span:nth-child(2) { left: 25%; }
.hw-chart__x span:nth-child(3) { left: 50%; }
.hw-chart__x span:nth-child(4) { left: 75%; }
.hw-chart__x span:nth-child(5) { left: 100%; transform: translateX(-100%); }
.hw-chart__caption {
  margin-top: 6px;
}

.hw-voice {
  padding: 18px 20px 20px;
}
.hw-voice__title {
  margin-bottom: 10px;
}
.hw-voice ol {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.hw-voice li {
  display: grid;
  grid-template-columns: 3.25em minmax(0, 1fr);
  gap: 10px;
}
.hw-voice__time {
  color: var(--ink-2);
}
.hw-voice__words {
  font-weight: 600;
}

.note {
  max-width: 48em;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--sunken);
}
.hw-caption {
  max-width: 48em;
  margin-top: 10px;
}

/* Zone calculator */

.zones {
  display: grid;
  gap: 28px;
}
@media (min-width: 840px) {
  .zones {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
  }
}
.zones__inputs {
  display: grid;
  align-content: start;
  gap: 20px;
}
.field__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.35;
}
.field__control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.field__input {
  width: 6.5rem;
  min-width: 0;
  min-height: 52px;
  padding: 8px 14px;
  border: 1.5px solid var(--ink-2);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1.375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.field__input:focus-visible {
  border-color: var(--ink);
  outline-offset: 2px;
}
.field__input[aria-invalid="true"] {
  border-width: 2px;
  border-color: var(--amber);
}
.field__unit {
  color: var(--ink-2);
  font-weight: 600;
}
.field__hint {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: .875rem;
}
.field__error {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  color: var(--amber);
  font-size: .9375rem;
  font-weight: 600;
}
.field__error::before {
  content: "!";
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
}

.zones__max {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}
.zones__max-label {
  font-weight: 600;
}
.zones__max-value {
  font-size: clamp(2rem, 1.7rem + 1.3vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.zones__source {
  margin: 2px 0 18px;
  color: var(--ink-2);
  font-size: .9375rem;
}
.zone-list {
  padding: 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
}
/* Name and bpm on the first line, the percentage under them across the full width. */
.zone-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.zone-row::before {
  content: "";
  align-self: center;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--stage, var(--ink-3));
}
.zone-row__name {
  font-weight: 600;
  line-height: 1.3;
}
.zone-row__bpm {
  font-size: 1.125rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.zone-row__pct {
  grid-column: 2 / -1;
  color: var(--ink-2);
  font-size: .875rem;
  line-height: 1.4;
}
.zone-row--work { --stage: var(--ember); }
.zone-row--recovery { --stage: var(--rec-fill); }
.zone-row--warmUp,
.zone-row--coolDown { --stage: var(--easy-fill); }
.zones__note {
  max-width: 48em;
  margin-top: 16px;
}

/* A session: proportional strip, then the steps (a row on wide screens, a list on phones) */

.session-bar {
  margin-bottom: 28px;
}
.session-bar__track {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 64px;
}
.session-bar__seg {
  flex: var(--w) 1 0;
  min-width: 0;
  height: calc(var(--h) * 100%);
  border-radius: 4px 4px 2px 2px;
  background: var(--easy-fill);
}
.session-bar__seg--work { background: var(--ember); }
.session-bar__seg--rec { background: var(--rec-fill); }
.session-bar__axis {
  position: relative;
  height: 18px;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}
.session-bar__axis span {
  position: absolute;
  top: 0;
  white-space: nowrap;
  transform: translateX(-50%);
}
.session-bar__axis span:nth-child(1) { left: 0; transform: none; }
.session-bar__axis span:nth-child(2) { left: 25%; }
.session-bar__axis span:nth-child(3) { left: 50%; }
.session-bar__axis span:nth-child(4) { left: 75%; }
.session-bar__axis span:nth-child(5) { left: 100%; transform: translateX(-100%); }

.steps {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 18px 28px;
  border-radius: 16px;
  background: var(--card);
}
.step::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: var(--stage);
}
.step--easy { --stage: var(--easy-fill); }
.step--work { --stage: var(--ember); }
.step--rec { --stage: var(--rec-fill); }
@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .step {
    padding: 26px 18px 20px;
  }
  .step::before {
    right: 0;
    bottom: auto;
    width: auto;
    height: 8px;
  }
}
.step__when {
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 600;
}
.step__title {
  margin-top: 2px;
  font-size: 1.25rem;
}
.step__meta {
  margin: 4px 0 12px;
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.4;
}
.step__cues {
  display: grid;
  gap: 8px;
  padding: 0;
  font-size: .9375rem;
  line-height: 1.4;
  list-style: none;
}
.step__cues q {
  font-weight: 600;
  quotes: "\201C" "\201D";
}
.step__at {
  display: block;
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 600;
}
.session__note {
  max-width: 48em;
  margin-top: 16px;
}

/* Features */

.features {
  display: grid;
  gap: 16px;
}
.feature {
  display: grid;
  align-items: center;
  gap: 28px;
}
@media (min-width: 840px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    padding: 48px;
  }
  .feature--flip .feature__media {
    order: -1;
  }
}
.feature__title {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.feature__text > p + p,
.feature__text > p + ul {
  margin-top: 14px;
}
.feature__media {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.shot {
  display: block;
  width: 100%;
  max-width: 280px;
  border-radius: 28px;
  background: var(--paper);
}
.feature__media--pair .shot {
  width: calc(50% - 7px);
  max-width: 236px;
  border-radius: 22px;
}

.ticks {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 28px;
}
.ticks li::before {
  content: "";
  position: absolute;
  top: .42em;
  left: 3px;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  transform: rotate(-45deg);
}

/* Science */

.findings {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .findings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .findings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.finding {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.finding__claim {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.finding__caveat {
  color: var(--ink-2);
  font-size: .9375rem;
}
.finding__caveat strong {
  color: var(--ink);
  font-weight: 600;
}
.finding__sources {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 12px 0 0;
  border-top: 1px solid var(--hairline);
  font-size: .875rem;
  line-height: 1.45;
  list-style: none;
}
/* A sunken well rather than a white card, so it reads as the other side of the ledger. Ink text only: ink-2 on the
   well is under 4.5:1. */
.finding--limits {
  background: var(--sunken);
}
.finding--limits .finding__claim {
  font-size: 1.375rem;
}
.limits {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}
.limits li {
  position: relative;
  padding-left: 22px;
}
.limits li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 2px;
  width: 10px;
  height: 2px;
  background: var(--ink);
}
.limits__source {
  display: block;
  margin-top: 4px;
  font-size: .875rem;
}
.science__more {
  margin-top: 24px;
  font-weight: 600;
}

/* Price and privacy */

.plans {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.plan {
  display: flex;
  flex-direction: column;
}
.plan__lead {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.plan__more {
  margin-top: auto;
  padding-top: 20px;
  font-weight: 600;
}

/* FAQ */

.faq {
  padding-block: 4px;
}
@media (min-width: 600px) {
  .faq { padding-block: 8px; }
}
.faq details:first-child {
  border-top: 0;
}
.faq details:last-child {
  border-bottom: 0;
}
.faq summary {
  font-size: 1.125rem;
}
.faq__more {
  margin-top: 18px;
}

/* 404 */

.notfound {
  padding-block: clamp(56px, 12vw, 160px) 0;
}
.notfound__title {
  font-size: clamp(2.5rem, 1.8rem + 3.4vw, 4.5rem);
  letter-spacing: -0.04em;
}
.notfound .lede {
  margin-top: 16px;
}
.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Hero: the text and the live halfway card side by side on wide screens; the four-peaks strip runs under both. */

.hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.hero__title-2 {
  display: block;
  color: var(--ink-2);
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .hero__title { font-size: clamp(3.25rem, 1.5rem + 3.4vw, 4.25rem); }
}

/* The live card echoes the running screen. Type on the work block is 19 px bold or larger: white on the work red is
   4.3:1, which passes only as large text. */
.hero-live {
  width: 100%;
  max-width: 380px;
  justify-self: center;
}
@media (min-width: 960px) {
  .hero-live { justify-self: end; }
}
.hero-live__card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
}
.hero-live__block {
  padding: 16px 18px 14px;
  border-radius: 0 0 24px 24px;
  background: var(--work);
  color: #fff;
}
.hero-live__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
}
.hero-live__stage {
  font-size: 1.5rem;
}
.hero-live__round {
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero-live__time {
  margin-top: 4px;
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-live__bar {
  position: relative;
  height: 20px;
  margin-top: 10px;
}
.hero-live__bar::before,
.hero-live__fill {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  height: 8px;
  border-radius: 4px;
}
.hero-live__bar::before {
  right: 0;
  background: rgba(255, 255, 255, .3);
}
.hero-live__fill {
  background: #fff;
}
.hero-live__tick {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 20px;
  margin-left: -1.5px;
  border-radius: 1.5px;
  background: #fff;
}
.hero-live__status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 1.5em;
  margin-top: 8px;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
}
.hero-live__status .icon {
  flex: none;
  width: 20px;
  height: 20px;
}
.hero-live__plot {
  position: relative;
  height: 112px;
  margin: 34px 18px 0;
  border-bottom: 1px solid rgba(26, 25, 23, .2);
}
.hero-live__band {
  position: absolute;
  right: 0;
  left: 0;
  background: rgba(45, 176, 106, .24);
  box-shadow: inset 0 2px 0 var(--green-fill), inset 0 -2px 0 var(--green-fill);
}
.hero-live__half {
  position: absolute;
  top: -20px;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
  border-left: 2px dashed var(--ink-2);
}
.hero-live__half-label {
  position: absolute;
  top: -4px;
  left: 6px;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.hero-live__svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero-live__line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-live__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--card);
}
.hero-live__hr {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 18px 18px;
}
.hero-live__bpm {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-live__unit {
  color: var(--ink-2);
  font-size: 1.125rem;
  font-weight: 600;
}
.hero-live__headline {
  margin-left: auto;
  font-size: 1.125rem;
  font-weight: 600;
}
.hero-live__caption {
  margin-top: 10px;
  text-align: center;
}

/* Science groups: what the studies show, what Fjell infers, what is not proven. */

.findings__group {
  margin: 36px 0 14px;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.section__head + .findings__group {
  margin-top: 0;
}
.findings.findings--single {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .finding--limits .limits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 40px;
  }
}

/* Why not a free timer */

.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  line-height: 1.35;
}
.compare__table th,
.compare__table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--hairline);
  text-align: center;
  vertical-align: middle;
}
.compare__table thead th {
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 600;
  vertical-align: bottom;
}
.compare__table thead .compare__fjell {
  color: var(--ink);
  font-size: 1rem;
}
.compare__table tbody th {
  padding-left: 0;
  font-weight: 500;
  text-align: left;
}
.compare__table td:last-child,
.compare__table thead th:last-child {
  background: var(--sunken);
  font-weight: 600;
}
.compare__table tbody tr:last-child th,
.compare__table tbody tr:last-child td {
  border-bottom: 0;
}
.mark {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
.mark--yes {
  color: var(--ink);
}
.mark--no {
  color: var(--ink-2);
}
.compare__note {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.3;
}
.compare__caption {
  margin-top: 12px;
}
@media (max-width: 599px) {
  .compare__table {
    font-size: .875rem;
  }
  .compare__table th,
  .compare__table td {
    padding: 10px 4px;
  }
  .compare__table tbody th {
    width: 40%;
  }
}

.plan__buys {
  margin: -6px 0 16px;
  color: var(--ink-2);
}
@media (min-width: 720px) {
  .findings.findings--pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .card.compare { padding-inline: 12px; }
}
