/* Mon-ID reservation before launch (reserve.js): the sheet over any page, dimmed as the Mon app
   dims behind its sheets, and the same sheet on its own page, reserve.html. It wears the app's
   white surface, like the guides: ink title, quiet fields and the app's violet action.
   On a phone it has the size of the app's sheets: 86% of the width, under the
   header. */

.reserve {
  --reserve-ink: #292c39;
  --reserve-ink-soft: rgba(41, 44, 57, 0.72);
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.reserve[hidden] {
  display: none;
}

/* The page behind: the app's dimming behind a sheet (Account Details), black at 40%, no blur. */
.reserve__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  touch-action: none;
  transition: opacity 440ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reserve.is-open .reserve__scrim {
  opacity: 1;
  transition: opacity 300ms ease;
}

/* Over a page the dimming is the veil below, part of the page itself; this layer only catches
   the tap outside the sheet. */
.reserve:not(.reserve--page) .reserve__scrim {
  background: transparent;
}

/* The veil: black at 40%, as the app dims behind its sheets. It belongs to the page, so it also
   covers what shows behind a phone's browser bars, where a fixed layer stops short. reserve.js
   gives it the page's height when the sheet opens. */
.reserve-veil {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 59;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 440ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reserve-veil.is-open {
  opacity: 1;
  transition: opacity 300ms ease;
}

.reserve-veil.is-invited.is-open {
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* The strips an iPhone's Safari takes its bars' colour from (reserve.js): the page dimmed, opaque,
   as Safari paints it. Never seen themselves; a tap on them is a tap outside. */
.reserve__edge {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1;
  height: 12px;
  background: rgb(146, 148, 153);
  filter: opacity(0);
  touch-action: none;
}

.reserve__edge--top {
  top: 0;
}

.reserve__edge--bottom {
  bottom: 0;
}

.reserve__edge[hidden] {
  display: none;
}

/* The pale sheet: 28px corners, a neutral shadow, and its entrance, a small scale-up that settles.
   Closing, it settles away while the page brightens, slower than it came. */
.reserve__sheet {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 420px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  /* Opaque, so nothing on the page shows through it. */
  background: var(--app-background, #f4f6ff);
  box-shadow: 0 12px 32px rgba(24, 28, 40, 0.12);
  color: var(--reserve-ink);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 260ms cubic-bezier(0.4, 0, 0.2, 1), transform 340ms cubic-bezier(0.4, 0, 0.2, 1), max-height 260ms cubic-bezier(0.32, 0.72, 0, 1);
}

.reserve.is-open .reserve__sheet {
  opacity: 1;
  transform: none;
  transition: opacity 200ms ease, transform 320ms cubic-bezier(0.175, 0.885, 0.32, 1.275), max-height 260ms cubic-bezier(0.32, 0.72, 0, 1);
}

/* Close and back: the guides' round controls, level with the title. */
.reserve .reserve__close,
.reserve .reserve__back {
  position: absolute;
  top: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.reserve .reserve__close {
  right: 20px;
  transition: background-color 200ms ease;
}

.reserve .reserve__back {
  left: 20px;
  background: none;
  color: inherit;
}

/* In the country list, back is the way out, as in the app; when done, the Done button is. */
.reserve__sheet[data-current="country"] .reserve__close,
.reserve__sheet[data-current="sent"] .reserve__close {
  display: none;
}

/* The type of the app's onboarding: a bold, tight heading, one calm line under it, every field
   and placeholder at one size, and the button's own weight. */
.reserve__title {
  margin: 0;
  padding-inline: 36px;
  color: var(--reserve-ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.reserve__lede {
  max-width: 31ch;
  margin: 10px auto 0;
  color: var(--reserve-ink-soft);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.reserve__lede strong {
  color: var(--reserve-ink);
  font-weight: 600;
}

.reserve__form {
  margin-top: 26px;
  display: grid;
  gap: 12px;
  text-align: left;
}

/* White fields with a soft neutral shadow, without an outline. Typing shows
   only the caret, as in the app; the @ takes the app's violet. */
.reserve__field {
  position: relative;
  box-sizing: border-box;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 16px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(24, 28, 40, 0.10);
}

.reserve__field input {
  width: 100%;
  min-width: 0;
  height: 54px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f2f38;
  caret-color: #2f2f38;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.reserve__field input::placeholder {
  color: rgba(47, 47, 56, 0.44);
  font-size: 16px;
  font-weight: 500;
}

.reserve__field--tag input::placeholder {
  font-size: 16px;
}

.reserve__field--tag {
  gap: 0;
}

.reserve__field--tag input {
  font-weight: 600;
}

.reserve__at {
  flex: none;
  color: rgba(47, 47, 56, 0.44);
  font-size: 16px;
  font-weight: 600;
  transition: color 160ms ease;
}

.reserve__field--tag:focus-within .reserve__at {
  color: #6d7bff;
}

/* The name's state at the end of its row: a small turning ring while Mon checks, a tick when free. */
.reserve__mark {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 200ms ease, transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}

.reserve__mark svg {
  width: 13px;
  height: 13px;
}

[data-state="checking"] .reserve__mark,
[data-state="available"] .reserve__mark {
  opacity: 1;
  transform: none;
}

[data-state="checking"] .reserve__mark {
  border: 2px solid rgba(41, 44, 57, 0.18);
  border-top-color: rgba(41, 44, 57, 0.6);
  animation: reserve-turn 700ms linear infinite;
}

[data-state="checking"] .reserve__mark svg {
  display: none;
}

[data-state="available"] .reserve__mark {
  background: linear-gradient(135deg, #6c79ff, #7959ff);
  color: #fff;
}

@keyframes reserve-turn {
  to {
    transform: rotate(360deg);
  }
}

.reserve__status {
  min-height: 18px;
  margin: -2px 6px 4px;
  color: var(--reserve-ink-soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

[data-state="available"] + .reserve__status {
  color: var(--reserve-ink);
}

[data-state="taken"] + .reserve__status,
[data-state="invalid"] + .reserve__status {
  color: #9b2d27;
}

/* Country: a field like the others, with the chosen country's round flag. It opens the list. */
.reserve__field--country {
  width: 100%;
  gap: 12px;
  padding-right: 44px;
  color: #2f2f38;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease;
}

.reserve__field--country::after {
  content: "";
  position: absolute;
  right: 21px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border-right: 1.7px solid rgba(47, 47, 56, 0.62);
  border-bottom: 1.7px solid rgba(47, 47, 56, 0.62);
  border-radius: 0 0 1px 0;
  transform: rotate(45deg);
  pointer-events: none;
}

.reserve__value {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.reserve__field--country:not(.has-value) .reserve__value {
  color: rgba(47, 47, 56, 0.44);
  font-size: 16px;
}

.reserve__field--country:focus-visible {
  outline: 2px solid rgba(65, 71, 147, 0.45);
  outline-offset: 2px;
}

@media (hover: hover) {
  .reserve__field--country:hover {
    background-color: rgba(255, 255, 255, 0.18);
  }
}

/* The app's round flag: a soft shadow under it and a light sheen across it. */
.reserve__flag {
  --flag: 34px;
  position: relative;
  flex: none;
  width: var(--flag);
  height: var(--flag);
  border-radius: 50%;
  box-shadow: 0 calc(var(--flag) * 0.206) calc(var(--flag) * 0.44) rgba(0, 0, 0, 0.2);
}

.reserve__flag img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.reserve__flag::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle calc(var(--flag) * 1.05) at 27.5% 21%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.01) 56%, rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

.reserve__field .reserve__flag {
  --flag: 26px;
}

.reserve__flag[hidden] {
  display: none;
}

/* The country list, as the app's sign-up list: search on top, then each country's round flag and
   name; the chosen one lit, with the app's violet tick. */
.reserve__search {
  box-sizing: border-box;
  margin-top: 16px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(24, 28, 40, 0.10);
  color: rgba(47, 47, 56, 0.58);
  text-align: left;
  cursor: text;
}

.reserve__search > svg {
  flex: none;
  width: 19px;
  height: 19px;
}

.reserve__search input {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f2f38;
  caret-color: #2f2f38;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.reserve__search input::placeholder {
  color: rgba(47, 47, 56, 0.44);
  font-size: 15px;
}

.reserve__search input::-webkit-search-decoration,
.reserve__search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}

.reserve__clear {
  flex: none;
  width: 28px;
  height: 28px;
  margin: 0 -6px 0 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: rgba(47, 47, 56, 0.58);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.reserve__clear svg {
  width: 16px;
  height: 16px;
}

.reserve__clear[hidden] {
  display: none;
}

.reserve__countries {
  position: relative;
  max-height: min(372px, calc(100dvh - 260px));
  margin: 20px -4px 0;
  padding: 0 4px 12px;
  display: grid;
  gap: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  text-align: left;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), transparent);
}

.reserve__countries::-webkit-scrollbar {
  display: none;
}

.reserve__country {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: #2f2f38;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.007em;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease;
}

.reserve__country[hidden] {
  display: none;
}

.reserve__country-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (hover: hover) {
  .reserve__country:hover {
    background-color: rgba(255, 255, 255, 0.16);
  }
}

.reserve__country:focus-visible {
  outline: 2px solid rgba(65, 71, 147, 0.45);
  outline-offset: -2px;
}

.reserve__country[aria-checked="true"] {
  border-color: rgba(255, 255, 255, 0.44);
  background: linear-gradient(to bottom right, #eef2ff, #dde4ff);
}

.reserve__pick {
  box-sizing: border-box;
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: transparent;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.reserve__pick svg {
  width: 15px;
  height: 15px;
}

.reserve__country[aria-checked="true"] .reserve__pick {
  border-color: #6d7bff;
  background: #6d7bff;
  color: #fff;
}

.reserve__none {
  margin: 0;
  padding: 26px 14px;
  color: rgba(47, 47, 56, 0.58);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.reserve__none[hidden] {
  display: none;
}

/* Ticks: the app's sign-up check box. */
.reserve__tick {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 4px 6px 0;
  color: var(--reserve-ink-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.reserve__tick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reserve__box {
  box-sizing: border-box;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 1.3px solid rgba(63, 81, 181, 0.2);
  border-radius: 8px;
  background: #fff;
  color: transparent;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.reserve__box svg {
  width: 15px;
  height: 15px;
}

.reserve__tick input:checked + .reserve__box {
  border-color: #6d7bff;
  background: #6d7bff;
  color: #fff;
}

/* A ring only for the Tab key (header.js), in ink: never after a click or a tap. */
html.is-keyboard-nav .reserve__tick input:focus-visible + .reserve__box {
  outline: 2px solid var(--reserve-ink);
  outline-offset: 2px;
}

.reserve__tick a,
.reserve__fine a {
  color: var(--reserve-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(41, 44, 57, 0.3);
  text-underline-offset: 2px;
}

/* "(optional)": lighter than the sentence, so it reads as an aside and not as a second sentence. */
.reserve__opt {
  font-weight: 400;
  white-space: nowrap;
}

/* The app's primary button: its violet, its corner, its type. Not ready yet: the same button,
   faded, as in the app. */
.reserve__submit {
  width: 100%;
  min-height: 56px;
  margin-top: 14px;
  padding: 0 20px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(to bottom right, #6d7bff, #7a5fff);
  box-shadow: 0 10px 24px rgba(109, 123, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #fff;
  font: inherit;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 200ms ease, transform 160ms ease;
}

a.reserve__submit {
  display: grid;
  place-items: center;
  text-decoration: none;
}

a.reserve__submit[hidden] {
  display: none;
}

.reserve__submit:active:not(:disabled) {
  transform: scale(0.98);
}

.reserve__submit:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: default;
}

.reserve__submit:focus-visible,
.reserve .reserve__close:focus-visible,
.reserve .reserve__back:focus-visible {
  outline: 2px solid rgba(65, 71, 147, 0.5);
  outline-offset: 3px;
}

.reserve__fine {
  margin: 10px 8px 0;
  color: var(--reserve-ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-wrap: pretty;
}

.reserve__error {
  margin: 2px 6px 0;
  color: #9b2d27;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.reserve__error:empty {
  display: none;
}

.reserve__captcha:empty {
  display: none;
}

/* Done: the app's status symbol, a soft white disc with the violet tick (as when a statement is
   saved), then the name and one line. The disc settles in and the tick draws itself. */
.reserve__glyph {
  width: 64px;
  height: 64px;
  margin: 2px auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(24, 28, 40, 0.10);
  color: #5d55e8;
}

.reserve__glyph svg {
  width: 30px;
  height: 30px;
}

.reserve__view:not([hidden]) .reserve__glyph--sent {
  animation: reserve-settle 460ms cubic-bezier(0.175, 0.885, 0.32, 1.275) 120ms both;
}

.reserve__view:not([hidden]) .reserve__glyph--sent path {
  stroke-dasharray: 1;
  animation: reserve-tick 420ms cubic-bezier(0.65, 0, 0.35, 1) 380ms both;
}

@keyframes reserve-settle {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

@keyframes reserve-tick {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

[data-view="sent"] .reserve__lede {
  max-width: 27ch;
  font-size: 16px;
}

[data-view="sent"] .reserve__lede strong {
  white-space: nowrap;
}

[data-view="sent"] > .reserve__submit {
  margin-top: 22px;
}

.reserve__name {
  margin: 4px 0 0;
  color: var(--reserve-ink);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  word-break: break-all;
}

.reserve__view > .reserve__submit {
  margin-top: 24px;
}

/* The mobile sheet keeps its resting dimensions when the keyboard overlays the page. */
@media (max-width: 640px) {
  /* The sheet rests a little above the middle of the screen: the room above it and the room below
     share what is left over, a quarter more below. It never comes closer to the header than
     reserve.js allows (--reserve-top), nor closer than 12px to the bottom of the screen. */
  .reserve:not(.reserve--page) {
    bottom: auto;
    box-sizing: border-box;
    height: var(--reserve-frame-height, 100dvh);
    padding: 0;
    grid-template-rows: minmax(var(--reserve-top, 72px), 1fr) auto minmax(12px, 1.25fr);
    overflow: clip;
  }

  .reserve:not(.reserve--page) .reserve__sheet {
    grid-row: 2;
  }

  .reserve__sheet {
    width: 86%;
    max-height: calc(var(--reserve-frame-height, 100dvh) - var(--reserve-top, 72px) - 12px);
    padding: 22px 18px 18px;
  }

  .reserve .reserve__close,
  .reserve .reserve__back {
    top: 16px;
  }

  .reserve .reserve__close {
    right: 14px;
  }

  .reserve .reserve__back {
    left: 14px;
  }

  .reserve__title {
    padding-inline: 34px;
    font-size: 23px;
    line-height: 1.15;
    letter-spacing: -0.03em;
  }

  .reserve__lede {
    margin-top: 8px;
    font-size: 14.5px;
  }

  .reserve__form {
    margin-top: 20px;
    gap: 10px;
  }

  .reserve__status {
    font-size: 12.5px;
  }

  .reserve__tick {
    margin-inline: 4px;
    font-size: 13.5px;
  }

  .reserve__fine {
    font-size: 12px;
  }

  .reserve__search {
    margin-top: 14px;
  }

  .reserve__countries {
    max-height: min(372px, calc(var(--reserve-frame-height, 100dvh) - var(--reserve-top, 72px) - 160px));
    margin-top: 16px;
  }

  .reserve__glyph {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }

  .reserve__glyph svg {
    width: 26px;
    height: 26px;
  }

  .reserve__name {
    font-size: 30px;
  }
}

/* reserve.html: the same sheet, in the page, without dimming. */
.reserve--page {
  position: static;
  /* On its own page the sheet is a grid item, where z-index applies even unpositioned: keep it
     under the header (20), so the menu drops over it. */
  z-index: 1;
  display: block;
  place-items: normal;
  padding: 0;
}

.reserve--page .reserve__sheet {
  width: min(100%, 420px);
  max-height: none;
  margin: 0;
  overflow: visible;
  opacity: 1;
  transform: none;
  padding: 30px 26px 24px;
}

.reserve--page .reserve__close,
.reserve--page .reserve__scrim {
  display: none;
}

.reserve--page .reserve__countries {
  max-height: min(372px, 62vh);
}

html.has-reserve-open {
  overflow: hidden;
  scrollbar-gutter: auto;
}

html.has-reserve-open body {
  padding-inline-end: var(--reserve-gutter, 0px);
}

/* reserve.html, the page for ads: the title and three steps, with the sheet beside them on wide
   screens and under the title on phones. From an email link, only the sheet, with the result. */
.reserve-hero {
  width: min(100%, var(--feature-width, 1120px));
  margin: 0 auto;
  padding: clamp(16px, 3.4vw, 52px) 0 clamp(64px, 8vw, 128px);
  display: grid;
  grid-template-areas: "intro" "card" "steps";
  gap: clamp(32px, 4vw, 44px);
}

.reserve-hero__intro {
  grid-area: intro;
}

.reserve-hero__intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 4.2vw, 64px);
  font-weight: 600;
  line-height: max(1, var(--title-leading, 0));
  letter-spacing: -0.06em;
}

.reserve-hero__lede {
  max-width: 30ch;
  margin: clamp(16px, 1.7vw, 24px) 0 0;
  color: #59606f;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.42;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.reserve-hero > [data-reserve-page] {
  grid-area: card;
}

/* The form arrives a moment after the page (reservation-bootstrap.js): hold its usual height
   meanwhile, so the steps below it don't jump down when it appears. */
.reserve-hero > [data-reserve-page]:empty {
  min-height: 500px;
}

.reserve-steps {
  grid-area: steps;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  list-style: none;
  counter-reset: reserve-step;
}

.reserve-steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  counter-increment: reserve-step;
}

.reserve-steps li::before {
  content: counter(reserve-step);
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(148deg, #7581ff 0%, #6470f6 56%, #735eff 100%);
  box-shadow: 0 8px 16px rgba(42, 48, 95, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.reserve-steps strong {
  padding-top: 1px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.reserve-steps span {
  margin-top: 2px;
  color: #59606f;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

@media (min-width: 1280px) {
  .reserve-hero {
    grid-template-columns: minmax(0, 1fr) 420px;
    grid-template-areas: "intro card" "steps card";
    grid-template-rows: auto 1fr;
    column-gap: clamp(48px, 5vw, 80px);
    row-gap: 48px;
    align-items: start;
  }

  .reserve-hero__intro {
    align-self: end;
  }

  .reserve-hero > [data-reserve-page] {
    align-self: center;
  }
}

/* The sheet in the page: the page's title says what it is, so the sheet starts with the fields. */
.reserve--page [data-view="form"] > .reserve__title,
.reserve--page [data-view="form"] > .reserve__lede {
  display: none;
}

.reserve--page .reserve__form {
  margin-top: 0;
}

.reserve-hero.is-result {
  grid-template-columns: minmax(0, 420px);
  grid-template-areas: "card";
  justify-content: center;
  padding-top: clamp(40px, 8vw, 120px);
}

.reserve-hero.is-result .reserve-hero__intro,
.reserve-hero.is-result .reserve-steps {
  display: none;
}

@media (max-width: 640px) {
  .reserve--page .reserve__sheet {
    padding: 22px 18px 18px;
  }

  /* Phones: the title and its line stand on the centre line, as on the other pages. */
  .reserve-hero__intro {
    text-align: center;
  }

  .reserve-hero__lede {
    margin-inline: auto;
  }
}

.reserve__sheet:focus,
.reserve__title:focus {
  outline: none;
}

.reserve-nowrap {
  white-space: nowrap;
}

/* Touch screens: the sheet can be pulled down to close it (reserve.js), without a grabber drawn
   on it. While a finger holds it, the sheet and the dimming follow the finger directly. */
.reserve.is-dragging .reserve__sheet,
.reserve.is-dragging .reserve__scrim {
  transition: none;
}

/* The invitation (it opens by itself, once): the page dims slowly, then the sheet arrives, calm,
   without the tap's little bounce. */
.reserve.is-invited.is-open .reserve__scrim {
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reserve.is-invited.is-open .reserve__sheet {
  transition: opacity 520ms ease 220ms, transform 760ms cubic-bezier(0.16, 1, 0.3, 1) 220ms, max-height 260ms cubic-bezier(0.32, 0.72, 0, 1);
}

/* Phones: the sheet rises from the bottom of the screen, whole and opaque, as the app's sheets do,
   and goes back down when it closes (below). */
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .reserve:not(.reserve--page) .reserve__sheet {
    opacity: 1;
    transform: translateY(var(--reserve-frame-height, 100dvh));
  }

  .reserve.is-open:not(.reserve--page) .reserve__sheet {
    transform: none;
    transition: transform 460ms cubic-bezier(0.32, 0.72, 0, 1), max-height 260ms cubic-bezier(0.32, 0.72, 0, 1);
  }

  .reserve.is-invited.is-open:not(.reserve--page) .reserve__sheet {
    transition: transform 620ms cubic-bezier(0.32, 0.72, 0, 1) 180ms, max-height 260ms cubic-bezier(0.32, 0.72, 0, 1);
  }

  .reserve.is-dragging:not(.reserve--page) .reserve__sheet {
    transition: none;
  }

  /* Closing mirrors the opening: the page brightens evenly while the sheet glides down, together,
     on one curve. */
  .reserve-veil.is-closing {
    transition: opacity 340ms cubic-bezier(0.4, 0, 0.2, 1);
  }
}

@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .reserve.is-closing .reserve__sheet {
    opacity: 1;
    transform: translateY(var(--reserve-frame-height, 100dvh));
    transition: transform 340ms cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  .reserve.is-closing .reserve__scrim {
    transition: opacity 340ms cubic-bezier(0.4, 0, 0.2, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reserve-veil,
  .reserve-veil.is-open,
  .reserve-veil.is-invited.is-open,
  .reserve__scrim,
  .reserve.is-open .reserve__scrim,
  .reserve__sheet,
  .reserve.is-open .reserve__sheet,
  .reserve.is-invited.is-open .reserve__scrim,
  .reserve.is-invited.is-open .reserve__sheet,
  .reserve__mark,
  .reserve__submit,
  .reserve__pick {
    transition: none;
  }

  .reserve__sheet {
    transform: none;
  }

  .reserve__view:not([hidden]) .reserve__glyph--sent,
  .reserve__view:not([hidden]) .reserve__glyph--sent path {
    animation: none;
  }

  [data-state="checking"] .reserve__mark {
    animation-duration: 1400ms;
  }
}
