/* edugrafik.pl (ADR-116 W41): tokens from docs/04-screens.md, Inter from the app, status colours with meaning only. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-4.001-400.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-017F, U+2000-206F, U+2190-2193, U+2212;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-4.001-500.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-017F, U+2000-206F, U+2190-2193, U+2212;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-4.001-600.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-017F, U+2000-206F, U+2190-2193, U+2212;
}

:root {
  color-scheme: light;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --paper: #F5F7FA;
  --white: #FFFFFF;
  --ink: #1B1F24;
  --slate: #5F6B7A;
  --line: #D9DEE5;
  --line-soft: #E8ECF1;
  --blue: #2F5BEA;
  --blue-deep: #2249C6;
  --blue-ink: #1F3FB0;
  --blue-tint: #E9EFFD;
  --night: #0F1B3D;
  --night-text: #C3CCE2;
  /* Status colours of the app; the darker inks keep text on tints readable (WCAG AA). */
  --green: #1E9E5A;
  --green-ink: #157A45;
  --green-tint: #E5F4EC;
  --amber: #E8A317;
  --amber-ink: #8A5A00;
  --amber-tint: #FCF1DA;
  --grey: #9AA0A6;
  --grey-ink: #5B6168;
  --grey-tint: #EEF0F2;
  --shadow-float: 0 1px 2px rgba(15, 27, 61, 0.06), 0 16px 36px -8px rgba(15, 27, 61, 0.22);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* Base */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.35rem + 4.2vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.875rem, 1.3rem + 2.1vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

img {
  display: block;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.nw {
  white-space: nowrap;
}

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

.skip {
  position: absolute;
  z-index: 30;
  top: -80px;
  left: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

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

.icon {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--blue);
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn:hover {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
}

.btn--ghost:hover {
  border-color: var(--blue);
  background: var(--blue-tint);
}

.btn--small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 15px;
}

.btn--light {
  border-color: var(--white);
  background: var(--white);
  color: var(--night);
}

.btn--light:hover {
  border-color: var(--blue-tint);
  background: var(--blue-tint);
}

/* Header */

.top {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(217, 222, 229, 0.7);
  background: rgba(245, 247, 250, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

.top__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.top__nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.top__nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--slate);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.top__nav a:hover {
  background: rgba(27, 31, 36, 0.05);
  color: var(--ink);
}

/* Hero */

.hero {
  position: relative;
  overflow-x: clip;
  padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 112px);
}

/* The schedule grid behind the hero and the 404 page: days by hours, as in a printed "grafik". */
.hero::before,
.missing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(47, 91, 234, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(47, 91, 234, 0.07) 1px, transparent 1px);
  background-position: center top;
  background-size: 112px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 25%, transparent 92%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero__lead {
  max-width: 34em;
  margin-top: 24px;
  color: var(--slate);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

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

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 36px;
}

.stores__note {
  color: var(--slate);
  font-size: 14px;
}

.stores__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store {
  display: inline-flex;
  flex-direction: column;
  padding: 7px 14px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  line-height: 1.2;
}

.store__soon {
  color: var(--slate);
  font-size: 11.5px;
}

.store__name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.stores--dark .stores__note,
.stores--dark .store__soon {
  color: var(--night-text);
}

.stores--dark .store {
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
}

.stores--dark .store__name {
  color: var(--white);
}

/* Hero visual: the trainer's calendar in the app */

.hero__visual {
  display: flex;
  justify-content: center;
  padding: 48px 0;
}

/* The phone and the two cards on its corners: the push over the status bar, the company's booking over the tabs. */
.device {
  position: relative;
}

.phone {
  width: 300px;
  padding: 10px;
  border-radius: 50px;
  background: var(--ink);
  box-shadow: 0 2px 4px rgba(15, 27, 61, 0.08), 0 32px 64px -16px rgba(15, 27, 61, 0.38);
}

.phone__screen {
  display: flex;
  flex-direction: column;
  height: 604px;
  overflow: hidden;
  border-radius: 40px;
  background: var(--white);
  font-size: 12px;
  line-height: 1.35;
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 2px;
  font-size: 13px;
  font-weight: 600;
}

.phone__island {
  width: 84px;
  height: 24px;
  border-radius: 12px;
  background: var(--ink);
}

.phone__battery {
  position: relative;
  width: 23px;
  height: 11px;
  border: 1.5px solid var(--ink);
  border-radius: 3.5px;
}

.phone__battery::after {
  content: "";
  position: absolute;
  inset: 1.5px 5px 1.5px 1.5px;
  border-radius: 1.5px;
  background: var(--ink);
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.app-bar__dots {
  width: 4px;
  height: 4px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--slate);
  box-shadow: 0 -6px 0 var(--slate), 0 6px 0 var(--slate);
}

.month {
  padding: 0 12px;
}

.month__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px;
  font-size: 14px;
  font-weight: 600;
}

.month__arrows {
  display: flex;
  gap: 16px;
}

.month__arrows span {
  width: 7px;
  height: 7px;
  border-top: 1.8px solid var(--slate);
  border-left: 1.8px solid var(--slate);
  transform: rotate(-45deg);
}

.month__arrows span + span {
  transform: rotate(135deg);
}

.month__weekdays,
.month__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.month__weekdays span {
  padding-bottom: 4px;
  color: var(--slate);
  font-size: 10.5px;
  text-align: center;
}

.day {
  position: relative;
  height: 37px;
  padding-top: 5px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.day--out {
  color: #B6BDC7;
}

.day--selected {
  box-shadow: inset 0 0 0 1.5px var(--blue);
  color: var(--blue);
  font-weight: 600;
}

.bars {
  position: absolute;
  right: 7px;
  bottom: 5px;
  left: 7px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bars b {
  display: block;
  height: 3px;
  border-radius: 2px;
}

.b-free {
  background: var(--green);
}

.b-hold {
  background: var(--amber);
}

.b-conf {
  background: var(--blue);
}

/* The hold bar of 18 November sits where the confirmed bar appears. */
.day--selected .b-hold {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 10px;
  padding-top: 10px;
  color: var(--slate);
  font-size: 10.5px;
}

.legend__item {
  white-space: nowrap;
}

.legend__item::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 3px;
  margin-right: 5px;
  border-radius: 2px;
  vertical-align: middle;
}

.legend__item--free::before {
  background: var(--green);
}

.legend__item--hold::before {
  background: var(--amber);
}

.legend__item--conf::before {
  background: var(--blue);
}

.agenda {
  margin: 12px 12px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.agenda__date {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.slot {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.slot__time {
  min-width: 70px;
  white-space: nowrap;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.slot--free {
  background: var(--green-tint);
  color: var(--green-ink);
}

.slot--hold {
  background: var(--amber-tint);
  color: var(--amber-ink);
}

.slot--conf {
  background: var(--blue-tint);
  color: var(--blue-ink);
}

.slot-swap {
  display: grid;
}

.slot-swap > .slot {
  grid-area: 1 / 1;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: auto;
  padding: 8px 6px 16px;
  border-top: 1px solid var(--line-soft);
}

.tabs__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--slate);
  font-size: 9.5px;
}

.tabs__item--on {
  color: var(--blue);
  font-weight: 600;
}

.float {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(217, 222, 229, 0.8);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-float);
}

.float--push {
  top: -30px;
  left: 168px;
  width: 270px;
  padding: 12px 14px 13px;
}

.push__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate);
  font-size: 12px;
}

.push__head img {
  border-radius: 5px;
}

.push__when {
  margin-left: auto;
}

.push__title {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
}

.push__body {
  margin-top: 2px;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.45;
}

.float--booking {
  bottom: -36px;
  left: -150px;
  display: grid;
  width: 250px;
  padding: 14px 16px 15px;
}

.booking {
  grid-area: 1 / 1;
}

.booking__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.booking__status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.booking--conf .booking__status::before {
  background: var(--blue);
}

.booking__who {
  margin-top: 4px;
  color: var(--slate);
  font-size: 13px;
}

.booking__count {
  margin-top: 10px;
  color: var(--amber-ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.booking--conf .booking__count {
  color: var(--blue-ink);
}

.meter {
  display: block;
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--amber-tint);
}

.meter__fill {
  display: block;
  width: 98%;
  height: 100%;
  border-radius: 3px;
  background: var(--amber);
}

/* Sections */

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.section--white {
  background: var(--white);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section__lead {
  max-width: 40em;
  margin-top: 16px;
  color: var(--slate);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

/* Before and after */

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.compare__col {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 18px;
}

.compare__col--before {
  background: var(--paper);
}

.compare__col--after {
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--blue);
}

.compare__title {
  margin-bottom: 20px;
  font-size: 1.1875rem;
}

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

.thread__item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: baseline;
  column-gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--white);
}

.compare__col--after .thread__item {
  background: var(--paper);
}

.thread__time {
  grid-row: span 2;
  white-space: nowrap;
  color: var(--slate);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.thread__who {
  color: var(--slate);
  font-size: 12.5px;
}

.thread__text {
  font-size: 15px;
}

.thread__gap {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 600;
}

.thread__gap::before,
.thread__gap::after {
  content: "";
  flex: 1;
  border-top: 1.5px dashed var(--line);
}

.compare__col--after .thread__item--done {
  border-color: transparent;
  background: var(--amber-tint);
}

.thread__item--done .thread__time,
.thread__item--done .thread__who {
  color: var(--amber-ink);
}

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

.points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}

.points .icon {
  margin-top: 2px;
}

.points--before .icon {
  color: var(--slate);
}

.points--after .icon {
  color: var(--blue);
}

/* How it works: the steps follow the booking statuses */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  --step: var(--green);
  --step-dark: var(--green-ink);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 28px 0 0;
  border-top: 4px solid var(--step);
}

.step:last-child {
  padding-right: 0;
}

.step--hold {
  --step: var(--amber);
  --step-dark: var(--amber-ink);
}

.step--conf {
  --step: var(--blue);
  --step-dark: var(--blue);
}

.step__marker {
  position: absolute;
  top: -18px;
  left: 0;
  display: flex;
  align-items: center;
  color: var(--step-dark);
  font-size: 13px;
  font-weight: 600;
}

.step__num {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--step-dark);
  box-shadow: 0 0 0 4px var(--paper);
  color: var(--white);
  font-size: 14px;
}

.step__label {
  padding: 0 10px;
  background: var(--paper);
}

.step > p {
  margin: 10px 0 22px;
  color: var(--slate);
  font-size: 15.5px;
}

/* The illustrations of the four steps line up at the bottom of the row. */
.mini {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 150px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--white);
  font-size: 13px;
}

.rule {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rule span {
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--green-tint);
  color: var(--green-ink);
  font-size: 12.5px;
  font-weight: 600;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.week-strip__day {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--slate);
  font-size: 12px;
}

.week-strip__day::after {
  content: "";
  width: 100%;
  height: 26px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.week-strip__day--on::after {
  border: 0;
  background: var(--green);
}

.result {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 3px;
}

.avatar {
  display: grid;
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}

.result__name {
  grid-column: 2;
  font-size: 13px;
  font-weight: 600;
}

.result .chip {
  grid-column: 2;
  grid-row: 2;
}

.result__km {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--slate);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.chip {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
}

.chip--free {
  background: var(--green-tint);
  color: var(--green-ink);
}

.chip--hold {
  background: var(--amber-tint);
  color: var(--amber-ink);
}

.chip--conf {
  background: var(--blue-tint);
  color: var(--blue-ink);
}

.countdown {
  display: grid;
  gap: 2px;
}

.countdown__label {
  color: var(--slate);
  font-size: 12.5px;
}

.countdown__value {
  color: var(--amber-ink);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini__note {
  color: var(--slate);
  font-size: 12.5px;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.feature__icon {
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  color: var(--blue);
}

.feature p {
  margin-top: 8px;
  color: var(--slate);
  font-size: 15px;
}

.features--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 28px;
  margin-top: 40px;
}

/* For trainers */

.trainers {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.trainers__aside {
  display: grid;
  gap: 20px;
}

.dayview {
  padding: 20px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.dayview__head {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.dayview__date {
  font-size: 16px;
  font-weight: 600;
}

.dayview__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-left: 52px;
  color: var(--slate);
  font-size: 12px;
}

.dayview__grid {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(21, 15px);
  column-gap: 8px;
  background-image: repeating-linear-gradient(to bottom, var(--line-soft) 0 1px, transparent 1px 30px);
}

.dayview__hour {
  grid-column: 1;
  color: var(--slate);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transform: translateY(-50%);
}

.dayview__hour--8 {
  grid-row: 1;
}

.dayview__hour--10 {
  grid-row: 5;
}

.dayview__hour--12 {
  grid-row: 9;
}

.dayview__hour--14 {
  grid-row: 13;
}

.dayview__hour--16 {
  grid-row: 17;
}

.dayview__hour--18 {
  grid-row: 21;
}

.block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 1px 0;
  padding: 8px 10px;
  overflow: hidden;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.3;
}

.block b {
  white-space: nowrap;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.block small {
  font-size: 11.5px;
}

.block--free {
  grid-column: 2;
  grid-row: 3 / 19;
  background: var(--green-tint);
  color: var(--green-ink);
}

.block--conf {
  grid-column: 3;
  grid-row: 3 / 9;
  background: var(--blue-tint);
  color: var(--blue-ink);
}

.block--hold {
  grid-column: 3;
  grid-row: 12 / 18;
  background: var(--amber-tint);
  color: var(--amber-ink);
}

.join {
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--blue-tint);
  color: #1E2F66;
}

.join h3 {
  color: #14204A;
}

.join p {
  margin-top: 6px;
  font-size: 15px;
}

/* Many companies and privacy */

.privacy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.privacy__panel {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 18px;
  background: var(--paper);
}

.privacy__panel h3 {
  font-size: 1.1875rem;
}

.privacy__panel > p {
  margin-top: 10px;
  color: var(--slate);
  font-size: 15.5px;
}

.company-week {
  margin-top: 24px;
}

.company-week__days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.cw-day {
  display: grid;
  gap: 8px;
}

.cw-day__name {
  color: var(--slate);
  font-size: 12px;
  text-align: center;
}

.cw-bar {
  display: flex;
  align-items: flex-end;
  min-height: 96px;
  padding: 8px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
}

.cw-bar--free {
  background: var(--green-tint);
  color: var(--green-ink);
}

.cw-bar--conf {
  background: var(--blue-tint);
  color: var(--blue-ink);
}

.cw-bar--hold {
  background: var(--amber-tint);
  color: var(--amber-ink);
}

/* Another company's booking: hatched, without details. */
.cw-bar--busy {
  background: repeating-linear-gradient(135deg, var(--grey-tint) 0 6px, #E1E4E8 6px 12px);
  color: var(--grey-ink);
}

.checks {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
}

.checks .icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--blue);
}

/* Questions */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

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

.qa {
  border-bottom: 1px solid var(--line);
}

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

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

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

.qa[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.qa summary:hover {
  color: var(--blue);
}

.qa p {
  max-width: 40em;
  padding-bottom: 22px;
  color: var(--slate);
}

/* Contact */

.contact {
  position: relative;
  overflow: clip;
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--night);
  color: var(--white);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 112px 56px;
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 70%);
  mask-image: linear-gradient(to left, #000 10%, transparent 70%);
  pointer-events: none;
}

.contact__inner {
  position: relative;
}

.contact h2 {
  max-width: 15em;
  color: var(--white);
}

.contact__lead {
  max-width: 34em;
  margin-top: 16px;
  color: var(--night-text);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.contact .btn {
  margin-top: 32px;
}

.contact :focus-visible {
  outline-color: var(--white);
}

/* Footer */

.foot {
  padding: 40px 0 48px;
}

.foot__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
}

.foot__tagline {
  color: var(--slate);
  font-size: 15px;
}

.foot__mail {
  font-weight: 600;
  text-decoration: none;
}

.foot__mail:hover {
  text-decoration: underline;
}

.foot__legal {
  grid-column: 1 / 3;
  margin-top: 16px;
  color: var(--slate);
  font-size: 13.5px;
}

/* The contractor's credit (ADR-117): the lettering sits at the bottom of the logo, on the label's baseline. */
.foot__credit {
  display: flex;
  align-items: baseline;
  justify-self: end;
  gap: 8px;
  margin-top: 16px;
  color: var(--slate);
  font-size: 13.5px;
}

.foot__credit a {
  opacity: 0.7;
  transition: opacity 0.15s;
}

.foot__credit a:hover,
.foot__credit a:focus-visible {
  opacity: 1;
}

/* 404 */

.missing {
  position: relative;
  overflow-x: clip;
  padding: clamp(80px, 12vw, 160px) 0;
}

.missing__inner {
  position: relative;
}

.missing__code {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.missing__lead {
  margin: 16px 0 32px;
  color: var(--slate);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

/* Legal documents (ADR-121): one column of text; the tables of the draft are definition lists, so a phone never scrolls sideways. */

.doc {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px);
}

.doc__inner {
  --wrap: 760px;
}

.doc__head {
  margin-bottom: 32px;
}

.doc h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  line-height: 1.08;
}

.doc h2 {
  margin-top: clamp(44px, 5vw, 60px);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.doc h3 {
  margin-top: 24px;
}

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

.doc ul,
.doc ol {
  margin-bottom: 0;
  padding-left: 1.4em;
}

.doc li + li {
  margin-top: 8px;
}

.doc__lead {
  color: var(--slate);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.doc__head .doc__lead {
  margin-top: 16px;
}

.doc__head .doc__meta {
  margin-top: 12px;
  color: var(--slate);
  font-size: 15px;
}

.doc__note {
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--blue-tint);
}

.doc .doc__note {
  margin-top: 24px;
}

.doc__toc {
  margin-top: 32px;
  padding: 20px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.doc .doc__toc h2 {
  margin: 0;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.doc .doc__toc ol {
  margin-top: 10px;
  columns: 2;
  column-gap: 32px;
}

.doc .doc__toc li {
  margin-top: 0;
  padding: 3px 0;
  break-inside: avoid;
}

.doc__list {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}

.doc__list > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 4px 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.doc__list dt {
  font-weight: 600;
}

.doc__list dd {
  grid-column: 2;
  margin: 0;
}

.doc__list--basis dt {
  grid-row: span 2;
}

.doc__label {
  color: var(--slate);
  font-size: 15px;
  font-weight: 500;
}

.doc__quote {
  margin: 14px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: var(--white);
}

.doc__quote p {
  margin: 0;
}

/* Pages without the section links: the contact button goes to the right edge, as on the home page. */
.brand + .btn--small {
  margin-left: auto;
}

.foot__legal a {
  color: inherit;
}

/* One orchestrated moment: on 18 November a free slot becomes a hold, then a confirmed training. */

.anim-hold {
  opacity: 0;
  animation: eg-hold 2.6s ease-out 0.6s both;
}

.anim-conf {
  animation: eg-in 0.45s ease-out 3s both;
}

.float--booking {
  animation: eg-in 0.45s ease-out 0.35s both;
}

.anim-push {
  animation: eg-push 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 3.3s both;
}

@keyframes eg-hold {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  12% {
    opacity: 1;
    transform: none;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes eg-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes eg-push {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .anim-hold,
  .anim-conf,
  .anim-push,
  .float--booking {
    animation: none;
  }

  .btn,
  .qa summary::after,
  .foot__credit a {
    transition: none;
  }
}

/* Responsive */

/* Below 1280 px the cards would run off the screen or into the text column: they overhang the phone less. */
@media (max-width: 1279px) {
  .float--push {
    right: -40px;
    left: auto;
  }

  .float--booking {
    left: -60px;
  }
}

@media (max-width: 1080px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 64px;
  }

  .step:nth-child(2) {
    padding-right: 0;
  }
}

@media (max-width: 960px) {
  .hero__inner,
  .trainers,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .top__nav {
    display: none;
  }

  .top .btn--small {
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .compare,
  .privacy,
  .features--compact {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .steps,
  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    padding-right: 0;
  }

  .phone {
    width: 272px;
  }

  .phone__screen {
    height: 560px;
  }

  .hero__visual {
    padding: 72px 0 112px;
  }

  /* Tab labels of the narrower phone would overlap; the icons stay. */
  .tabs__item {
    font-size: 0;
  }

  .float--push {
    top: -60px;
    right: -20px;
    left: auto;
    width: 232px;
  }

  .float--booking {
    bottom: -92px;
    left: -20px;
    width: 214px;
  }

  .thread__item {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The company's week as rows: five columns are too narrow for the labels. */
  .company-week__days {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .cw-day {
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .cw-day__name {
    text-align: left;
  }

  .cw-bar {
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
  }

  .thread__time {
    grid-row: auto;
  }

  .foot__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot__legal {
    grid-column: auto;
  }

  .foot__credit {
    justify-self: start;
    margin-top: 0;
  }

  .doc .doc__toc ol {
    columns: 1;
  }

  .doc__list > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc__list dd,
  .doc__list--basis dt {
    grid-column: auto;
    grid-row: auto;
  }
}
