@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/nunito-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --bg: #181818;
  --surface: #282828;
  --surface-2: #343434;
  --rest: #424242;
  --text: #fbfbfb;
  --muted: #9e9e9e;
  --accent: #ffac00;
  --on-accent: #181818;
  --switch-off: #4d4d4d;
  --line: rgba(251, 251, 251, 0.14);
  --line-soft: rgba(251, 251, 251, 0.08);
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --font-ui: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-display: var(--font-ui);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

html.is-feature-transitioning {
  scroll-behavior: auto;
  overflow-anchor: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a,
button {
  touch-action: manipulation;
}

a {
  -webkit-tap-highlight-color: rgba(255, 172, 0, 0.16);
}

button {
  -webkit-tap-highlight-color: rgba(255, 172, 0, 0.16);
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.15s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

main:focus {
  outline: none;
}

.button:focus-visible,
.skip-link:focus-visible {
  outline-color: var(--text);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

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

.brand__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.site-header nav {
  margin-left: auto;
}

.nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 30px);
}

.nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 2px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  text-decoration-color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}

.button:hover {
  filter: brightness(1.08);
}

.button:active {
  transform: translateY(1px);
}

.button--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.button--large {
  min-height: 60px;
  padding: 0 34px;
  font-size: 17px;
}

/* Hero */

.hero {
  padding-top: clamp(44px, 7vw, 88px);
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}

.hero__title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2.55rem, 6vw, 5.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Cycle workbench */

.cycle-workbench {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin-top: clamp(28px, 4vw, 48px);
}

.composer {
  grid-row: 1;
  grid-column: 1 / span 7;
}

.cycle-example {
  position: sticky;
  top: 24px;
  grid-row: 1;
  grid-column: 8 / span 5;
  max-width: 430px;
  justify-self: end;
}

.cycle-example__label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.cycle-example__note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.cycle-example__empty {
  margin-top: 18px;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.notation {
  display: inline-block;
  margin-left: 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.notation--wrap {
  white-space: normal;
}

.notation__sep {
  color: var(--accent);
}

.notation__plus {
  color: var(--muted);
}

/* Calendar cards */

.calendar-card {
  display: none;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 24px;
  background: var(--surface);
}

.cycle-example .calendar-card {
  width: 100%;
}

.js .calendar-card {
  display: block;
}

.calendar-card__month,
.calendar-demo__month {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-card .calendar-weekdays {
  margin-top: 8px;
}

.calendar-weekday {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.calendar-card__grid,
.calendar-demo__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 2px;
  margin-top: 8px;
  aspect-ratio: 7 / 5;
}

.calendar-cell {
  display: flex;
  min-width: 0;
}

.calendar-day {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

button.calendar-day {
  cursor: pointer;
  transition: filter 0.15s;
}

button.calendar-day:hover {
  filter: brightness(1.12);
}

button.calendar-day:focus-visible {
  outline-color: var(--text);
}

.calendar-day--work,
.calendar-day--selected {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.calendar-day--today::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

.calendar-day--today.calendar-day--work::after,
.calendar-day--today.calendar-day--selected::after {
  background: var(--on-accent);
}

.calendar-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.calendar-card__legend {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
}

.calendar-card__edit {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background-color 0.15s;
}

.calendar-card__edit:hover,
.calendar-card__edit:focus-visible {
  background: var(--surface-2);
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.legend__mark {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.legend__mark--work {
  border-radius: 50%;
  background: var(--accent);
}

.legend__mark--rest {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.legend__mark--today {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

/* Sections */

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

.section__intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: clamp(32px, 4.5vw, 52px);
}

.section__title {
  grid-column: 1 / span 6;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section__lede {
  grid-column: 8 / span 5;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
  max-width: 48ch;
}

/* Examples */

.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 28px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
  margin-bottom: 26px;
}

.examples__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.examples__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Composer */

.composer {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(20px, 3.4vw, 38px);
}

.composer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 24px;
}

.composer__title {
  font-size: clamp(1.5rem, 2.6vw, 1.75rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.composer__hint {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.composer__rows {
  display: grid;
  gap: 3px;
  margin-top: 20px;
}

.cycle-card {
  position: relative;
  padding: 16px;
  border-radius: 24px;
  background: var(--surface);
}

.cycle-card__title {
  padding-right: 40px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.cycle-card__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  grid-template-rows: auto 44px;
  align-items: center;
  row-gap: 4px;
  margin-top: 8px;
}

.cycle-card__caption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.cycle-card__caption--work {
  grid-column: 1;
  grid-row: 1;
}

.cycle-card__caption--rest {
  grid-column: 3;
  grid-row: 1;
}

.cycle-card__slash {
  grid-column: 2;
  grid-row: 2;
  color: var(--text);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.cycle-drum {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 14px;
  color: var(--accent);
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
  transition: background-color 0.15s;
}

.cycle-drum--work {
  grid-column: 1;
  grid-row: 2;
}

.cycle-drum--rest {
  grid-column: 3;
  grid-row: 2;
}

.cycle-drum:hover,
.cycle-drum:focus-visible,
.cycle-drum.is-dragging {
  background: var(--surface-2);
}

.cycle-drum__value {
  display: block;
  pointer-events: none;
}

.cycle-card__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.cycle-card__remove:hover,
.cycle-card__remove:focus-visible {
  background: var(--surface-2);
  color: var(--text);
}

.composer__empty {
  padding: 28px 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.composer__actions {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 16px;
}

.js .composer__actions {
  display: flex;
}

.composer__add {
  display: inline-flex;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  transition: background-color 0.15s;
}

.composer__add:hover,
.composer__add:focus-visible {
  background: var(--surface-2);
}

.composer__note,
.composer__noscript {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 56ch;
}

.composer__note {
  flex: 1 1 320px;
}

.composer__noscript {
  margin-top: 16px;
}

/* Three ways */

.ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.way {
  display: flex;
  flex-direction: column;
  padding: 0 30px;
  border-left: 1px solid var(--line);
}

.way:first-child {
  padding-left: 0;
  border-left: 0;
}

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

.mini {
  display: flex;
  gap: 2px;
  height: 64px;
}

.mini__cell {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 4px;
  background: var(--surface-2);
}

.mini__cell--work {
  background: var(--accent);
}

.mini--week {
  gap: 4px;
}

.mini--week .mini__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  border-radius: 6px;
}

.mini--week .mini__cell--work {
  color: var(--on-accent);
}

.mini--calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
}

.mini--calendar span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.mini--calendar .mini__cell--work {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}

.way__title {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.way__text {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.way__link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.way__link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Calendar and weekday schedule details */

.method {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: center;
}

.method__copy {
  grid-column: 1 / span 5;
}

.method__copy .section__lede {
  margin-top: 18px;
}

.method__visual {
  grid-column: 7 / span 6;
}

.calendar-demo,
.weekday-demo {
  border-radius: 24px;
  background: var(--surface);
}

.calendar-demo {
  display: none;
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  padding: 12px 16px;
}

.js .calendar-demo {
  display: block;
}

.calendar-demo__head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 4px;
}

.calendar-demo__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.calendar-demo__nav:hover,
.calendar-demo__nav:focus-visible {
  background: var(--surface-2);
  color: var(--text);
}

.calendar-demo .calendar-weekdays {
  margin-top: 8px;
}

.calendar-demo__footer {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.calendar-demo__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.weekday-demo {
  display: none;
  padding: clamp(20px, 3vw, 32px);
}

.js .weekday-demo {
  display: block;
}

.weekday-demo__title {
  font-size: 16px;
  font-weight: 800;
}

.calendar-demo__note,
.weekday-demo__note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.calendar-demo__note {
  margin-top: 12px;
}

.weekday-demo__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 18px;
}

.weekday-demo__cell {
  display: flex;
  min-width: 0;
}

.weekday-demo__day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.15s;
}

.weekday-demo__day:hover {
  filter: brightness(1.12);
}

.weekday-demo__day:focus-visible {
  outline-color: var(--text);
}

.weekday-demo__day--selected {
  background: var(--accent);
  color: var(--on-accent);
}

.weekday-demo__day--today::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

.weekday-demo__day--selected.weekday-demo__day--today::after {
  background: var(--on-accent);
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0 56px;
  margin-top: 4px;
  /* The accordion keeps its own scroll position while rows animate. */
  overflow-anchor: none;
}

.feature {
  min-width: 0;
  border-top: 1px solid var(--line);
}

.feature[open],
.feature--keep-span {
  grid-column: 1 / -1;
}

.feature--floating {
  position: relative;
  z-index: 3;
  background: var(--bg);
  will-change: transform;
}

.feature__summary {
  position: relative;
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) 22px;
  gap: 0 16px;
  align-items: start;
  padding: 20px 0 22px;
  list-style: none;
  cursor: pointer;
}

.feature__summary::-webkit-details-marker {
  display: none;
}

.feature__summary::marker {
  content: '';
}

.feature__mark {
  width: 6px;
  height: 6px;
  margin-top: 7px;
  background: var(--accent);
}

.feature__head {
  min-width: 0;
}

.feature__title {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.feature__text {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.feature__indicator {
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--muted);
}

.feature__indicator::before,
.feature__indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 1px;
  background: currentColor;
}

.feature__indicator::before {
  width: 14px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.feature__indicator::after {
  width: 1.5px;
  height: 14px;
  transform: translate(-50%, -50%);
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.feature[open] .feature__indicator {
  color: var(--accent);
}

.feature[open] .feature__indicator::after {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0);
}

.feature__summary:hover .feature__indicator {
  color: var(--text);
}

.feature[open] .feature__summary:hover .feature__indicator {
  color: var(--accent);
}

.feature__summary:focus-visible {
  border-radius: 4px;
  outline-offset: 4px;
}

.feature__body {
  --feature-body-padding-bottom: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 24px 40px;
  align-items: start;
  min-height: 0;
  padding: 0 0 var(--feature-body-padding-bottom) 22px;
  overflow: clip;
  contain: layout paint;
}

.feature__more {
  display: grid;
  gap: 12px;
  max-width: 62ch;
}

.feature__more p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.feature__shot {
  justify-self: end;
  width: 100%;
  max-width: 300px;
}

.feature__shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
  background: var(--bg);
}

/* Interface */

.interface {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}

.interface__copy {
  grid-column: 1 / span 5;
}

.interface__copy .section__title,
.interface__copy .section__lede {
  grid-column: auto;
}

.interface__copy .section__lede {
  margin-top: 18px;
}

.interface__caption {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  max-width: 32ch;
}

.interface__stage {
  grid-column: 7 / span 6;
  justify-self: end;
}

.phone-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.phone {
  width: clamp(268px, 30vw, 322px);
  padding: 7px;
  border-radius: 48px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 560px;
  padding: 54px 16px 16px;
  border-radius: 41px;
  background: var(--bg);
  overflow: hidden;
}

.phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 54px;
  height: 16px;
  border-radius: 0 0 10px 10px;
  background: var(--surface);
  transform: translateX(-50%);
}

.phone-app {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.phone-view {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.phone-view--home {
  justify-content: flex-end;
  gap: 24px;
}

.phone-home__list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.phone-home__list::-webkit-scrollbar {
  display: none;
}

.phone-controls {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 64px;
}

.phone-controls__side {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--accent);
}

.phone-switcher {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 12px;
  width: min(196px, 100%);
  height: 64px;
  padding: 8px 12px;
  border-radius: 32px;
  background: var(--surface);
}

.phone-switcher__item {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 48px;
  border-radius: 999px;
}

.phone-switcher__pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 30px;
  border-radius: 999px;
  color: var(--muted);
}

.phone-switcher__item--active .phone-switcher__pill {
  background: var(--accent);
  color: var(--on-accent);
}

.phone-switcher__icon {
  display: block;
  width: 26px;
  height: 26px;
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.phone-switcher__icon--settings {
  -webkit-mask-image: url('img/nbt-settings.png');
  mask-image: url('img/nbt-settings.png');
}

.phone-switcher__icon--alarm {
  -webkit-mask-image: url('img/nbt-stopwatch.png');
  mask-image: url('img/nbt-stopwatch.png');
}

.phone-switcher__icon--timer {
  -webkit-mask-image: url('img/nbt-timer.png');
  mask-image: url('img/nbt-timer.png');
}

.alarm-card {
  position: relative;
  padding: 16px 16px 16px 24px;
  border-radius: 24px;
  background: var(--surface);
  transition: opacity 0.15s;
}

.alarm-card--off {
  opacity: 0.55;
}

.alarm-card__content {
  position: relative;
  min-width: 0;
}

.alarm-card__times {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.alarm-card__time-row {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-right: 62px;
}

.alarm-card__time-row--small {
  padding-right: 62px;
}

.alarm-card__time {
  display: block;
  overflow: hidden;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.alarm-card__time-row--small .alarm-card__time {
  font-size: 24px;
  letter-spacing: -0.5px;
}

.alarm-card__time-row--off .alarm-card__time {
  color: var(--muted);
}

.alarm-card__name {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alarm-card__name[hidden] {
  display: none;
}

.alarm-card__name[hidden] + .alarm-card__schedule {
  margin-top: 10px;
}

.alarm-card__schedule {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.alarm-card__no-times {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.week {
  display: flex;
  margin-top: 12px;
}

.week > span {
  flex: 1 1 0;
  min-width: 0;
  padding: 2px 0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-align: center;
}

.week > .week__day--active {
  color: var(--accent);
  font-weight: 700;
}

.week > .week__today {
  background: var(--surface-2);
}

.alarm-card__open {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  cursor: pointer;
}

.alarm-card__open:focus-visible {
  outline: none;
}

.alarm-card:has(.alarm-card__open:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.phone-switch.alarm-card__master {
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 3;
}

.alarm-card__time-row .phone-switch {
  margin-left: auto;
}

.phone-switch {
  position: relative;
  z-index: 3;
  display: inline-flex;
  flex: 0 0 54px;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 44px;
  cursor: pointer;
}

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

.phone-switch__track {
  position: relative;
  display: block;
  width: 54px;
  height: 24px;
  border-radius: 999px;
  background: var(--switch-off);
  transition: background-color 0.15s;
}

.phone-switch__input:checked + .phone-switch__track {
  background: var(--accent);
}

.phone-switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 30px;
  height: 20px;
  border-radius: 8px;
  background: #fbfbfb;
  transition: transform 0.15s;
}

.phone-switch__input:checked + .phone-switch__track .phone-switch__knob {
  transform: translateX(20px);
}

.phone-switch:has(.phone-switch__input:focus-visible) .phone-switch__track {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.phone-form__head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-bottom: 8px;
}

.phone-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  transition: background-color 0.15s;
}

.phone-round:hover {
  background: var(--surface-2);
}

.phone-form__title {
  overflow: hidden;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.phone-form__head-spacer {
  display: block;
}

.phone-form__scroll {
  --fade-top: 0px;
  --fade-bottom: 0px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
  min-height: 0;
  padding-bottom: 3px;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 var(--fade-top),
    #000 calc(100% - var(--fade-bottom)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 var(--fade-top),
    #000 calc(100% - var(--fade-bottom)),
    transparent 100%
  );
}

.phone-form__scroll--fade-top {
  --fade-top: 24px;
}

.phone-form__scroll--fade-bottom {
  --fade-bottom: 24px;
}

.phone-form__scroll::-webkit-scrollbar {
  display: none;
}

.phone-form__days {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.phone-calendar-card,
.phone-weekdays-card,
.phone-time-card,
.phone-cycle-row {
  background: var(--surface);
  border-radius: 24px;
}

.phone-calendar-card {
  padding: 12px 16px;
}

.phone-calendar-card--locked {
  opacity: 0.55;
}

.phone-calendar__head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 4px;
}

.phone-calendar__month {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.phone-calendar__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.phone-calendar__nav:hover,
.phone-calendar__nav:focus-visible {
  background: var(--surface-2);
  color: var(--text);
}

.phone-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 8px;
}

.phone-calendar__weekday {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.phone-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 3px;
  margin-top: 6px;
  aspect-ratio: 7 / 5;
}

.phone-calendar__cell {
  min-width: 0;
}

.phone-calendar__day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

button.phone-calendar__day {
  cursor: pointer;
}

.phone-calendar__day--active {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

button.phone-calendar__day:hover {
  filter: brightness(1.08);
}

.phone-calendar__day:focus-visible {
  outline-offset: 1px;
}

.phone-calendar__day--today::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 8px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

.phone-calendar__day--active.phone-calendar__day--today::after {
  background: var(--on-accent);
}

.phone-calendar__day--empty {
  background: transparent;
}

.phone-calendar__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-top: 8px;
}

.phone-calendar__legend {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.phone-calendar__legend-mark {
  width: 8px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.phone-calendar__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.phone-calendar__info:hover,
.phone-calendar__info:focus-visible {
  background: var(--surface-2);
  color: var(--text);
}

.phone-weekdays-card {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  padding: 12px 16px;
}

.phone-weekdays-card--locked {
  opacity: 0.55;
}

.phone-weekday {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.phone-weekday[aria-pressed='true'] {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.phone-weekday:hover:not(:disabled) {
  filter: brightness(1.08);
}

.phone-weekday:focus-visible {
  outline-offset: 1px;
}

.phone-weekday:disabled {
  cursor: default;
}

.phone-weekday--today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 8px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

.phone-weekday[aria-pressed='true'].phone-weekday--today::after {
  background: var(--on-accent);
}

.phone-time-card {
  padding: 8px 12px 4px;
}

.phone-time-drum {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.phone-time-drum .phone-spin {
  flex: 1 1 0;
}

.phone-time-drum__colon {
  width: 20px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.phone-spin {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  cursor: ns-resize;
  user-select: none;
  touch-action: pan-x;
}

.phone-spin:hover {
  background: var(--surface-2);
}

.phone-spin:focus-visible {
  outline-offset: -2px;
}

.phone-spin.is-dragging {
  background: var(--surface-2);
  cursor: grabbing;
}

.phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.phone-time-rows {
  display: flex;
  flex-direction: column;
}

.phone-switch--static {
  pointer-events: none;
}

.phone-switch--static .phone-switch__track {
  background: var(--accent);
}

.phone-switch--static .phone-switch__knob {
  transform: translateX(20px);
}

.phone-rename .phone-field {
  margin-top: 12px;
}

.phone-time-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px 36px;
  align-items: center;
  min-height: 48px;
  padding: 0 8px;
  border-radius: 12px;
}

.phone-time-row--selected {
  background: var(--surface-2);
}

.phone-time-row__select {
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: left;
  cursor: pointer;
}

.phone-time-row--selected .phone-time-row__select {
  color: var(--accent);
}

.phone-time-row--off .phone-time-row__select {
  color: var(--muted);
}

.phone-time-row__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.phone-time-row__remove:hover:not(:disabled) {
  color: var(--text);
}

.phone-time-row__remove:disabled {
  opacity: 0.35;
  cursor: default;
}

.phone-time-add {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.phone-time-add:disabled {
  color: var(--muted);
  cursor: default;
}

.phone-time-limit,
.phone-time-empty {
  padding: 0 12px 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.phone-cycle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.phone-cycle-row__label {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.phone-cycle-row__value {
  overflow: hidden;
  margin-left: auto;
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-cycle-row__chevron {
  flex: 0 0 auto;
  color: var(--muted);
}

.phone-cycle-row:disabled {
  opacity: 0.55;
  cursor: default;
}

.phone-cycle-row:disabled .phone-cycle-row__chevron {
  display: none;
}

.phone-cycle-row:focus-visible {
  outline-offset: 2px;
}

.phone-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}

.phone-overlay[hidden] {
  display: none;
}

.phone-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.62);
}

.phone-overlay__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 100%;
  padding: 16px;
  overflow-y: auto;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.45);
  scrollbar-width: none;
}

.phone-overlay__card::-webkit-scrollbar {
  display: none;
}

.phone-overlay--sheet {
  align-items: flex-end;
  padding: 0;
}

.phone-overlay--sheet .phone-overlay__card {
  max-height: 88%;
  padding: 12px 16px 16px;
  border-radius: 24px 24px 0 0;
  background: var(--bg);
}

.phone-sheet__handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 2px;
  background: var(--line);
}

.phone-sheet__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.phone-sheet__title {
  overflow: hidden;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-sheet__done {
  min-height: 44px;
  margin-left: auto;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.phone-dialog__title {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.phone-dialog__body {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.phone-dialog__body p + p {
  margin-top: 8px;
}

.phone-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.phone-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.phone-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
}

.phone-field__hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.phone-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.phone-button--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.phone-button--secondary {
  background: var(--surface-2);
  color: var(--text);
}

.phone-button--text {
  background: transparent;
  color: var(--accent);
}

.phone-cycle-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.phone-cycle-card {
  padding: 16px;
  border-radius: 24px;
  background: var(--surface);
}

.phone-cycle-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-cycle-card__title {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.phone-cycle-card__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.phone-cycle-card__remove:hover {
  color: var(--text);
}

.phone-cycle-card__captions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.phone-cycle-drum {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
}

.phone-cycle-drum__slash {
  color: var(--text);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.phone-cycle-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.phone-cycle-footer .phone-round {
  width: 56px;
  height: 56px;
}

.phone-cycle-empty {
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.phone-demo__hint {
  display: none;
  max-width: 34ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.phone-demo__hint--fallback {
  display: block;
}

.phone-demo.is-ready > .phone-demo__hint {
  display: block;
}

/* Scenario */

.scenario {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.scenario > .section__title {
  grid-column: 1 / span 5;
}

.scenario__body {
  grid-column: 7 / span 6;
}

.steps {
  counter-reset: step;
}

.steps li {
  position: relative;
  counter-increment: step;
  padding: 16px 0 16px 54px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.5;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 14px;
  left: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.scenario__closing {
  margin-top: 30px;
  color: var(--text);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 24ch;
  text-wrap: balance;
}

/* Download */

.download {
  margin-top: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 7vw, 84px);
}

.download__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}

.download__title {
  grid-column: 1 / span 6;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.download__body-wrap {
  grid-column: 8 / span 5;
}

.download__body {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.download__note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.download__meta {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 38px 0 34px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 22px 48px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 240px;
}

.site-footer__brand img {
  border-radius: 10px;
}

.site-footer__name {
  font-size: 17px;
  font-weight: 800;
}

.site-footer__tagline {
  color: var(--muted);
  font-size: 13px;
}

.site-footer__local {
  flex: 1 1 260px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 34ch;
}

.site-footer__links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.site-footer__links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 4px;
  transition: color 0.15s;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--text);
}

.site-footer__legal {
  flex-basis: 100%;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
}

/* Responsive */

@media (max-width: 1020px) {
  .hero__title,
  .section__title {
    grid-column: 1 / span 12;
  }

  .section__lede {
    grid-column: 1 / span 8;
    margin-top: 14px;
  }

  .composer {
    grid-column: 1 / span 6;
  }

  .cycle-example {
    grid-column: 7 / span 6;
  }

  .interface__copy {
    grid-column: 1 / span 6;
  }

  .interface__stage {
    grid-column: 7 / span 6;
  }

  .method__copy {
    grid-column: 1 / span 6;
  }

  .method__visual {
    grid-column: 7 / span 6;
  }

  .scenario > .section__title {
    grid-column: 1 / span 12;
  }

  .scenario__body {
    grid-column: 1 / span 8;
    margin-top: 22px;
  }
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .site-header__inner > .button {
    margin-left: auto;
  }

  .cycle-workbench {
    grid-template-columns: 1fr;
  }

  .composer,
  .cycle-example {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .cycle-example {
    position: static;
    display: block;
    max-width: 430px;
    justify-self: start;
  }

  .cycle-example .calendar-card {
    margin-top: 18px;
  }

  .cycle-example__empty,
  .cycle-example noscript {
    max-width: none;
    margin-top: 18px;
  }

  .calendar-demo {
    margin-left: 0;
  }

  .ways {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .way {
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .way:last-child {
    padding-bottom: 0;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature__body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature__shot {
    justify-self: start;
    max-width: 320px;
  }

  .interface {
    grid-template-columns: 1fr;
  }

  .interface__copy,
  .interface__stage {
    grid-column: 1 / -1;
  }

  .method__copy,
  .method__visual {
    grid-column: 1 / -1;
  }

  .method__visual {
    margin-top: 28px;
  }

  .interface__stage {
    justify-self: center;
    margin-top: 34px;
  }

  .interface__copy .section__lede {
    max-width: 52ch;
  }

  .download__title,
  .download__body-wrap {
    grid-column: 1 / span 12;
  }

  .download__body-wrap {
    margin-top: 22px;
  }
}

@media (max-width: 720px) {
  .scenario__body {
    grid-column: 1 / span 12;
  }

  .download__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .download .button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .phone-form__title {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .hero__title {
    font-size: clamp(2.2rem, 9.6vw, 3.1rem);
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .section__title {
    font-size: clamp(1.85rem, 7.6vw, 2.35rem);
    hyphens: auto;
  }

  .section__lede {
    grid-column: 1 / -1;
    font-size: 16px;
  }

  .examples {
    gap: 8px 16px;
  }

  .examples__list {
    gap: 6px 20px;
    font-size: 15px;
  }

  .composer {
    border-radius: 22px;
  }

  .week > span {
    padding: 2px 4px;
    font-size: 10px;
  }

  .phone {
    width: 100%;
    max-width: 300px;
  }

  .phone__screen {
    height: 520px;
  }

  .site-footer__links {
    margin-left: 0;
  }
}

/* Reduced motion */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* The phone demo is a self-contained block below the first screen. */
.section--interface {
  content-visibility: auto;
  contain-intrinsic-size: auto 860px;
}
