/* ========================================================================== */
/* css/base.css */
/* ========================================================================== */

/*
 * Eviotel.ai — design system
 * 1. Fonts   2. Tokens   3. Reset and base   4. Type   5. Layout   6. Controls
 * 7. Lists and tables   8. Device frames   9. Utilities   10. Motion preferences
 *
 * Colour rules
 *   Cool brand colours carry structure: ink for text, blue for actions, cyan on dark only.
 *   One warm colour, "lamp", means lit: the one chosen thing in a view. It appears on
 *   night or ink surfaces only — never as a wash or as text on the light page.
 *   Magenta and purple appear only inside the logo and the landscape skies.
 *
 * Type rules
 *   Two registers. Loud (heavy, expanded) is for the hero line and for prices. Everything
 *   else is calm, so those two keep their rank.
 *
 * Shape rules
 *   Eviotel's own controls have a 12px corner. Pills belong to the miniature hotel sites.
 */

/* ------------------------------------------------------------------ 1. Fonts */

@font-face {
  font-family: "Anek Latin";
  src: url("fonts/anek-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Marcellus";
  src: url("fonts/marcellus.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Fallbacks tuned to the web fonts' proportions so text barely moves when they arrive. */
@font-face {
  font-family: "Anek Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Roboto");
  size-adjust: 95%;
  ascent-override: 94.7%;
  descent-override: 21.1%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Marcellus Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 103%;
  ascent-override: 94.6%;
  descent-override: 27.2%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------------ 2. Tokens */

:root {
  /* colour */
  --ink: #12154d;
  --ink-2: #3b4078;
  --ink-3: #5a5f91;
  --night: #0a0f33;
  --night-2: #141b57;
  --blue: #0c65c4;
  --blue-deep: #0a4f9b;
  --cyan: #19d3f5;
  --magenta: #e0399a;
  --purple: #6e51ae;
  --lamp: #ffd98a;
  --lamp-deep: #f4b63f;
  --paper: #fbfbff;
  --white: #ffffff;
  --ice: #eef3fd;
  --ice-2: #e1eafa;
  --wash-pink: #f3ddfb;
  --wash-cyan: #c9f3fd;
  --line: rgba(18, 21, 77, 0.14);
  --line-strong: rgba(18, 21, 77, 0.3);
  --line-on-dark: rgba(255, 255, 255, 0.16);
  --text-on-dark: #f1f5ff;
  --text-on-dark-2: #b9c4ea;
  --good: #0a7a4c;
  --bad: #b3261e;

  /* type */
  --sans: "Anek Latin", "Anek Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Marcellus", "Marcellus Fallback", Georgia, serif;
  --fs-display: clamp(2rem, 1rem + 4.6vw, 5rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 2.1vw, 2.875rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-micro: 0.8125rem;

  /* space (4px steps) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 8.5rem);
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --wrap: 77.5rem;
  --head-h: 4.5rem;

  /* shape */
  --r-1: 6px;
  --r-2: 12px;
  --r-3: 18px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(10, 15, 51, 0.06), 0 10px 28px -16px rgba(10, 15, 51, 0.32);
  --shadow-2: 0 28px 70px -30px rgba(10, 15, 51, 0.5);
  --glow-lamp: 0 0 0 4px rgba(255, 217, 138, 0.3), 0 0 22px 4px rgba(255, 196, 84, 0.45);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 140ms;
  --dur-2: 240ms;
  --dur-3: 420ms;
  --dur-4: 700ms;

  /* layers */
  --z-bar: 40;
  --z-head: 50;
  --z-dialog: 100;
  --z-toast: 110;

  /* ticks are blue on the light page and lamp-lit on dark surfaces */
  --tick: var(--blue);

  color-scheme: only light;
}

@media (max-width: 47.99rem) {
  :root {
    --head-h: 4rem;
  }
}

/* ------------------------------------------------------------------ 3. Reset and base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 1rem);
  scroll-padding-bottom: 1rem; /* a focused control never sits flush with the bottom edge */
  -webkit-tap-highlight-color: transparent;
}

/* a whole section has its own space above its heading: it lands flush under the header, so
   no sliver of the section before it is left showing */
main > section[id] {
  scroll-margin-top: -1rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

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

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--blue-deep);
}

[hidden] {
  display: none !important;
}

:focus {
  outline: none;
}

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

::selection {
  background: var(--ink);
  color: #fff;
}

/* ------------------------------------------------------------------ 4. Type */

/* loud: the hero line */
.display {
  font-size: var(--fs-display);
  font-weight: 780;
  font-stretch: 118%;
  line-height: 0.99;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

/* loud: prices */
.price {
  font-weight: 780;
  font-stretch: 116%;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* calm: every heading below the hero */
.h2 {
  font-size: var(--fs-h2);
  font-weight: 680;
  font-stretch: 105%;
  line-height: 1.08;
  letter-spacing: -0.017em;
  text-wrap: balance;
}

.h3 {
  font-size: var(--fs-h3);
  font-weight: 660;
  font-stretch: 103%;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.h4 {
  font-size: 1.125rem;
  font-weight: 640;
  font-stretch: 102%;
  line-height: 1.25;
}

.lede {
  max-width: 60ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.small {
  font-size: var(--fs-small);
}

.micro {
  font-size: var(--fs-micro);
  line-height: 1.4;
}

.muted {
  color: var(--ink-3);
}

/* any figures that sit in columns */
.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Product names are written Evio + accent, as in the brochure */
.evio em {
  font-style: normal;
  color: var(--blue);
}

p + p {
  margin-top: 0.9em;
}

/* ------------------------------------------------------------------ 5. Layout */

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

.section {
  position: relative;
  padding-block: var(--section-y);
}

/* two night blocks in a row share one gap, not two */
.section--night + .section--night {
  padding-top: 0;
}

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

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

.section__head {
  max-width: 54rem;
  margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem);
}

.section__head .lede {
  margin-top: var(--s-4);
}

/*
 * Dark surface. Put .on-dark on any night or ink block (a section, the chosen plan, the
 * closing scene) and text, ticks, links and focus rings switch to their dark-surface colours.
 */
.on-dark {
  --tick: var(--lamp);
  color: var(--text-on-dark);
}

.on-dark .lede,
.on-dark .muted {
  color: var(--text-on-dark-2);
}

.on-dark a:not(.btn) {
  color: var(--cyan);
}

.on-dark .evio em {
  color: var(--cyan);
}

.on-dark :focus-visible,
.on-dark:focus-visible {
  outline-color: var(--lamp);
}

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

/* ------------------------------------------------------------------ 6. Controls */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 3rem;
  padding: 0.6rem 1.25rem;
  border: 0;
  border-radius: var(--r-2);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  text-align: center;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2), color var(--dur-2);
}

.btn:hover {
  color: var(--btn-fg);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

/* the one lit action in a view; use on dark surfaces */
.btn--lamp {
  --btn-bg: var(--lamp);
  --btn-fg: #1a1647;
}

.btn--blue {
  --btn-bg: var(--blue);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.on-dark .btn--ghost {
  --btn-fg: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}

.btn--sm {
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  font-size: var(--fs-small);
}

.btn--lg {
  min-height: 3.5rem;
  padding: 0.8rem 1.6rem;
  font-size: 1.0625rem;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (hover: hover) {
  .btn--lamp:hover {
    box-shadow: var(--glow-lamp);
  }

  .btn:not(.btn--lamp):not(.btn--ghost):hover {
    box-shadow: 0 10px 24px -12px rgba(10, 15, 51, 0.6);
  }

  .btn--ghost:hover {
    background: rgba(18, 21, 77, 0.06);
  }

  .on-dark .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
  }
}

/* text-style action */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

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

.on-dark .link-btn,
.on-dark .link-btn:hover {
  color: var(--cyan);
}

/* form fields */
.field {
  display: grid;
  gap: 0.35rem;
}

.field__label {
  font-size: var(--fs-small);
  font-weight: 600;
}

.field__hint {
  font-size: var(--fs-micro);
  color: var(--ink-3);
}

.field__error {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--bad);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #7b80a4; /* 3.8:1 against white: the edge of a field has to be seen */
  border-radius: var(--r-2);
  background: #fff;
  color: var(--ink);
  font-size: 1rem; /* 16px keeps iOS from zooming the page on focus */
  line-height: 1.3;
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}

.textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312154d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.05rem;
}

.input::placeholder,
.textarea::placeholder {
  color: #666c98;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--ink-3);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-color: var(--blue);
}

.on-dark .input:focus-visible,
.on-dark .select:focus-visible,
.on-dark .textarea:focus-visible {
  outline-color: var(--lamp);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--bad);
}

/* segmented control: a row of radio buttons that reads as one switch */
.seg {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 3px;
  border: 0;
  border-radius: var(--r-2);
  background: var(--ice-2);
}

.seg__opt {
  position: relative;
  display: block;
  cursor: pointer;
}

.seg__opt span {
  display: block;
  min-height: 2.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 9px;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.5rem;
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--dur-2) ease, color var(--dur-2) ease;
}

.seg__opt input:checked + span {
  background: var(--ink);
  color: #fff;
}

.seg__opt input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.seg__opt input:disabled + span {
  cursor: not-allowed;
}

.on-dark .seg {
  background: rgba(255, 255, 255, 0.12);
}

.on-dark .seg__opt input:checked + span {
  background: var(--lamp);
  color: #1a1647;
}

/* the blue ring does not show on night */
.on-dark .seg__opt input:focus-visible + span {
  outline-color: var(--lamp);
}

/* hints and errors under a field on a dark surface. A light sheet placed inside a dark block
   (the booking demo) sets its own colours back. */
.on-dark .field__hint {
  color: var(--text-on-dark-2);
}

.on-dark .field__error {
  color: #ffc2b8;
}

/* small label: status, plan names */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.22em 0.65em;
  border-radius: var(--r-1);
  background: var(--ice-2);
  color: var(--ink);
  font-size: var(--fs-micro);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.tag--line {
  background: none;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.on-dark .tag {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-on-dark);
}

/* "Recommended", stated plainly beside a plan name */
.reco {
  font-size: var(--fs-micro);
  font-weight: 650;
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--blue);
  white-space: nowrap;
}

.on-dark .reco {
  color: var(--lamp);
}

/* icons: 24px line icons drawn with the current text colour */
.icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 2;
}

.icon--lg {
  width: 2rem;
  height: 2rem;
  stroke-width: 1.5;
}

/* an icon on its pale tile, as in the brochure */
.icon-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-2);
  background: linear-gradient(150deg, #dff4fb, #e9ecfd);
  color: var(--ink);
}

.on-dark .icon-tile {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-on-dark);
}

/* ------------------------------------------------------------------ 7. Lists and tables */

/* Inclusions: a plain tick, the mark the brochure uses and everyone reads. */
.ticks {
  display: grid;
  gap: 0.5rem 1.75rem;
}

.ticks > li {
  position: relative;
  padding-left: 1.7rem;
  line-height: 1.35;
}

.ticks > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.14em;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--tick);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 34rem) {
  .ticks--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* a line with a dotted leader between a name and its price, as on a tariff card */
.leader {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.leader__dots {
  flex: 1 1 2rem;
  min-width: 1.5rem;
  border-bottom: 2px dotted var(--line-strong);
  transform: translateY(-0.28em);
}

.on-dark .leader__dots {
  border-color: rgba(255, 255, 255, 0.35);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
  line-height: 1.35;
}

.table th,
.table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.table thead th {
  font-weight: 650;
}

.table tbody th {
  font-weight: 500;
}

/* ------------------------------------------------------------------ 8. Device frames */

.laptop {
  position: relative;
}

.laptop__lid {
  padding: 2% 2% 2.5%;
  border-radius: 1.9% / 3%;
  background: #0b0d24;
}

.laptop__base {
  position: relative;
  height: 0;
  padding-top: 1.7%;
  margin: 0 -6.5%;
  border-radius: 2px 2px 14px 14px / 2px 2px 100% 100%;
  background: linear-gradient(#e3e7f2, #b4bbd0);
}

.laptop__base::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 13%;
  height: 32%;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: #a9b0c6;
}

.phone {
  position: relative;
  padding: 3.4%;
  border-radius: 13% / 6.2%;
  background: #0b0d24;
}

/* The screen is a size container: everything on it is sized in cqw so it scales as one piece. */
.screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 0.7%;
  background: var(--night);
  color: #fff;
  container-type: inline-size;
  isolation: isolate;
}

.phone > .screen {
  aspect-ratio: 9 / 19;
  border-radius: 11% / 5.2%;
}

/* ------------------------------------------------------------------ 9. Utilities */

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

/*
 * A radio or tick box that is drawn by its label (a segment, a swatch, a package rung). The
 * real control is invisible but the size of the whole label, so the browser scrolls all of it
 * into view when it takes focus and counts all of it as the tap target. The label must be
 * position: relative.
 */
.cover-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cover-input:disabled {
  cursor: not-allowed;
}

.skip-link {
  position: fixed;
  left: var(--s-4);
  top: var(--s-4);
  z-index: 200;
  padding: 0.75rem 1.1rem;
  border-radius: var(--r-2);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
  color: #fff;
}

.nowrap {
  white-space: nowrap;
}

.center {
  text-align: center;
}

.stack > * + * {
  margin-top: var(--stack, var(--s-4));
}

.strike {
  text-decoration: line-through;
  text-decoration-thickness: 0.09em;
  color: var(--ink-3);
}

/* a short status message that slides in above everything */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-toast);
  max-width: min(92vw, 28rem);
  padding: 0.75rem 1.1rem;
  border-radius: var(--r-2);
  background: var(--night);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 500;
  box-shadow: var(--shadow-2);
  transform: translate(-50%, 1.5rem);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2);
}

.toast.is-on {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media print {
  .toast,
  .skip-link {
    display: none !important;
  }
}

/* ------------------------------------------------------------------ 10. Motion preferences */

/*
 * Motion follows the visitor's device setting unless they choose otherwise with the motion
 * switch on the page. A small script in <head> resolves the two into classes on <html>:
 *
 *   (none)                           full: everything plays
 *   .reduced-motion.gentle-motion    the device asks for reduced motion: nothing moves, zooms,
 *                                    counts or loops, but lights still come on and things fade
 *   .reduced-motion                  the visitor switched animations off: nothing animates
 *
 * Every style and script keys off those classes, never off the media query directly.
 */
/* Smooth scrolling starts only once the page has settled (core.js adds .is-settled): a visit
   that lands on #plans must arrive there at once, not glide while the page is still starting. */
html.is-settled:not(.reduced-motion) {
  scroll-behavior: smooth;
}

/* off: nothing animates */
.reduced-motion:not(.gentle-motion) *,
.reduced-motion:not(.gentle-motion) *::before,
.reduced-motion:not(.gentle-motion) *::after {
  animation-duration: 0.01ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}

/*
 * gentle: a change of opacity or colour is not movement, so those transitions keep their
 * timing; anything that would slide, grow or draw (transform, size, position) changes at once.
 * Keyframe animations are cut short, apart from the few below that only fade.
 */
.gentle-motion *,
.gentle-motion *::before,
.gentle-motion *::after {
  animation-duration: 0.01ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-property: opacity, color, background-color, border-color, outline-color, box-shadow, fill, stroke, filter, visibility !important;
  scroll-behavior: auto !important;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* without JavaScript there is no class to read, so fall back to the device setting */
@media (prefers-reduced-motion: reduce) {
  html.no-js {
    scroll-behavior: auto;
  }

  .no-js *,
  .no-js *::before,
  .no-js *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* short headings break evenly rather than leaving one word on the last line */
.h3,
.h4 {
  text-wrap: balance;
}

@media (hover: hover) {
  .seg__opt:hover input:not(:checked):not(:disabled) + span {
    background: rgba(18, 21, 77, 0.07);
  }

  .on-dark .seg__opt:hover input:not(:checked):not(:disabled) + span {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* a short laptop window gets less empty space above each section */
@media (min-width: 62rem) and (max-height: 46rem) {
  :root {
    --section-y: clamp(3.75rem, 13vh, 6rem);
  }
}

/*
 * A section's heading is dim until the visitor reaches it, then comes up like a light being
 * switched on. core.js adds .is-unlit only to headings still below the screen, so nothing is
 * dim without the script, and it is a change of opacity only (it plays in the gentle mode too).
 */
.section__head.is-unlit > * {
  opacity: 0.18;
}

.section__head.is-lighting > * {
  transition: opacity 0.7s ease;
}

.section__head.is-lighting > :nth-child(n + 2) {
  transition-delay: 0.14s;
}

@media print {
  .section__head.is-unlit > * {
    opacity: 1 !important;
  }
}

/*
 * Forced colours (Windows high-contrast themes). The browser replaces backgrounds and drops
 * shadows, so anything that was drawn with a background is redrawn here with system colours
 * or kept as it is where it is a picture.
 */
@media (forced-colors: active) {
  /* tick marks are a mask over a background colour */
  .ticks > li::before {
    forced-color-adjust: none;
    background-color: CanvasText;
  }

  /* the chosen segment of a switch */
  .seg__opt input:checked + span {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
  }

  .seg__opt span {
    border: 1px solid ButtonText;
  }

  /* focus on a field was a shadow; give it an outline */
  .input:focus-visible,
  .select:focus-visible,
  .textarea:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 2px;
  }

  .btn {
    border: 1px solid ButtonText;
  }

  /* the header's logo is recoloured with a filter over the hero; leave it as drawn */
  .head__logo img {
    filter: none !important;
  }
}

/* ---- on paper: night sections lose their background, so their words go dark ---- */
@media print {
  .section--night {
    background: none !important;
  }

  .on-dark,
  .on-dark * {
    color: #111 !important;
    text-shadow: none !important;
  }

  thead th,
  thead th * {
    color: #111 !important;
  }
}

@media print {
  /* tick marks are drawn with a background, which printers leave out unless told otherwise */
  .ticks > li::before {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background-color: #111 !important;
  }
}

/* paper is still: nothing is caught half-way through a transition (the logo was printing white,
   mid-way from its white form over the dark first screen) */
@media print {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .head {
    background: none !important;
  }

  .head__logo img {
    filter: none !important;
  }
}


/*
 * Text enlarged to about 150% or more on a phone (the window is then under 18rem wide):
 * two-column pieces become one column and long figures may wrap, so nothing pushes the
 * page wider than the screen and the header keeps its menu button in view.
 */
@media (max-width: 17.99rem) {
  html .groups__steps,
  html .groups__benefit-list,
  html .groups__site-text,
  html .booking__seg,
  html .field {
    grid-template-columns: minmax(0, 1fr);
  }

  html .groups__benefit > div {
    min-width: 0;
  }

  html .compare__also .select {
    min-width: 0;
    max-width: 100%;
  }

  html .price,
  html .table .num {
    white-space: normal;
  }

  html .h2,
  html .h3,
  html .h4,
  html .price,
  html .table th,
  html .table td,
  html .groups__benefit-text,
  html .groups__site-name {
    overflow-wrap: anywhere;
  }
}

/* ========================================================================== */
/* css/scene.css */
/* ========================================================================== */

/*
 * Coded landscape scenes (the "photography" inside the miniature hotel websites).
 * Geometry is generated by assets/js/scene.js; every colour comes from the custom
 * properties below, so one scene can move between dawn, day, dusk and night by
 * changing a single attribute:  <svg class="scene" data-time="dusk">
 */

/* Registered so the palette can be transitioned smoothly between times of day. */
@property --sc-sky0 { syntax: "<color>"; inherits: true; initial-value: #0f1a5c; }
@property --sc-sky1 { syntax: "<color>"; inherits: true; initial-value: #3a2f96; }
@property --sc-sky2 { syntax: "<color>"; inherits: true; initial-value: #8b4aa9; }
@property --sc-sky3 { syntax: "<color>"; inherits: true; initial-value: #e0569f; }
@property --sc-sky4 { syntax: "<color>"; inherits: true; initial-value: #ffb59a; }
@property --sc-glow { syntax: "<color>"; inherits: true; initial-value: #ffd6a8; }
@property --sc-far { syntax: "<color>"; inherits: true; initial-value: #c98fc6; }
@property --sc-near { syntax: "<color>"; inherits: true; initial-value: #171c55; }
@property --sc-ink { syntax: "<color>"; inherits: true; initial-value: #0c1140; }
@property --sc-fore { syntax: "<color>"; inherits: true; initial-value: #070a2a; }
@property --sc-w0 { syntax: "<color>"; inherits: true; initial-value: #2a2f8a; }
@property --sc-w1 { syntax: "<color>"; inherits: true; initial-value: #b24ba3; }
@property --sc-w2 { syntax: "<color>"; inherits: true; initial-value: #ffb59a; }
@property --sc-mist { syntax: "<color>"; inherits: true; initial-value: #ffd9e6; }
@property --sc-light { syntax: "<color>"; inherits: true; initial-value: #ffd98a; }
@property --sc-light-a { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --sc-glow-a { syntax: "<number>"; inherits: true; initial-value: 0.9; }
@property --sc-star-a { syntax: "<number>"; inherits: true; initial-value: 0.9; }
@property --sc-sun-a { syntax: "<number>"; inherits: true; initial-value: 1; }

.scene {
  display: block;
  width: 100%;
  height: 100%;

  /* dusk — the default, and the brand's own gradient: navy, violet, magenta, warm horizon */
  --sc-sky0: #0f1a5c;
  --sc-sky1: #3a2f96;
  --sc-sky2: #8b4aa9;
  --sc-sky3: #e0569f;
  --sc-sky4: #ffb59a;
  --sc-glow: #ffd6a8;
  --sc-far: #c98fc6;
  --sc-near: #171c55;
  --sc-ink: #0c1140;
  --sc-fore: #070a2a;
  --sc-w0: #2a2f8a;
  --sc-w1: #b24ba3;
  --sc-w2: #ffb59a;
  --sc-mist: #ffd9e6;
  --sc-light: #ffd98a;
  --sc-light-a: 1;
  --sc-glow-a: 0.9;
  --sc-star-a: 0.9;
  --sc-sun-a: 1;

  transition:
    --sc-sky0 1.6s ease, --sc-sky1 1.6s ease, --sc-sky2 1.6s ease, --sc-sky3 1.6s ease, --sc-sky4 1.6s ease,
    --sc-glow 1.6s ease, --sc-far 1.6s ease, --sc-near 1.6s ease, --sc-ink 1.6s ease, --sc-fore 1.6s ease,
    --sc-w0 1.6s ease, --sc-w1 1.6s ease, --sc-w2 1.6s ease, --sc-mist 1.6s ease, --sc-light 1.6s ease,
    --sc-light-a 1.6s ease, --sc-glow-a 1.6s ease, --sc-star-a 1.6s ease, --sc-sun-a 1.6s ease;
}

.scene[data-time="night"] {
  --sc-sky0: #050929;
  --sc-sky1: #0b144c;
  --sc-sky2: #18257a;
  --sc-sky3: #343aa2;
  --sc-sky4: #6a63c4;
  --sc-glow: #a9bcff;
  --sc-far: #4d58ad;
  --sc-near: #0b103c;
  --sc-ink: #060a28;
  --sc-fore: #03051a;
  --sc-w0: #0b144c;
  --sc-w1: #27328f;
  --sc-w2: #5f66c4;
  --sc-mist: #8f9cf0;
  --sc-light: #ffd98a;
  --sc-light-a: 1;
  --sc-glow-a: 0.4;
  --sc-star-a: 1;
  --sc-sun-a: 0;
}

.scene[data-time="dawn"] {
  --sc-sky0: #5c70d9;
  --sc-sky1: #9a8fe6;
  --sc-sky2: #e2a6d9;
  --sc-sky3: #ffcfc2;
  --sc-sky4: #fff1dc;
  --sc-glow: #fff6dc;
  --sc-far: #cdbbea;
  --sc-near: #2b3b88;
  --sc-ink: #1b2568;
  --sc-fore: #131b52;
  --sc-w0: #8fa0f0;
  --sc-w1: #f0b8dc;
  --sc-w2: #fff1dc;
  --sc-mist: #ffffff;
  --sc-light: #ffe6ae;
  --sc-light-a: 0.5;
  --sc-glow-a: 0.95;
  --sc-star-a: 0.12;
  --sc-sun-a: 1;
}

.scene[data-time="day"] {
  --sc-sky0: #1b86e2;
  --sc-sky1: #46aaf0;
  --sc-sky2: #8ad3f9;
  --sc-sky3: #c6ecfc;
  --sc-sky4: #f1fbff;
  --sc-glow: #ffffff;
  --sc-far: #a3cbec;
  --sc-near: #20508c;
  --sc-ink: #153564;
  --sc-fore: #0e2748;
  --sc-w0: #2f9be8;
  --sc-w1: #7fd4f6;
  --sc-w2: #e6f8ff;
  --sc-mist: #ffffff;
  --sc-light: #fff0c8;
  --sc-light-a: 0.22;
  --sc-glow-a: 0.75;
  --sc-star-a: 0;
  --sc-sun-a: 1;
}

/* ---- paint classes used by the scene painters ---- */
.scene .sc-s0 { stop-color: var(--sc-sky0); }
.scene .sc-s1 { stop-color: var(--sc-sky1); }
.scene .sc-s2 { stop-color: var(--sc-sky2); }
.scene .sc-s3 { stop-color: var(--sc-sky3); }
.scene .sc-s4 { stop-color: var(--sc-sky4); }
.scene .sc-g { stop-color: var(--sc-glow); }
.scene .sc-l { stop-color: var(--sc-light); }
.scene .sc-m { stop-color: var(--sc-mist); }
.scene .sc-wa { stop-color: var(--sc-w0); }
.scene .sc-wb { stop-color: var(--sc-w1); }
.scene .sc-wc { stop-color: var(--sc-w2); }

/* Depth tints: d1 is the farthest ridge (closest to the sky colour), d6 the nearest landform. */
.scene .sc-d1, .scene .sc-d2 { fill: var(--sc-far); }
.scene .sc-d3, .scene .sc-d4, .scene .sc-d5 { fill: var(--sc-near); }
/* The blends go inside @supports: a value that contains var() is never thrown away when the
   sheet is read, so a plain colour written before it on the same rule is not a fallback. */
@supports (fill: color-mix(in oklab, red, blue)) {
  .scene .sc-d1 { fill: color-mix(in oklab, var(--sc-far) 86%, var(--sc-near)); }
  .scene .sc-d2 { fill: color-mix(in oklab, var(--sc-far) 66%, var(--sc-near)); }
  .scene .sc-d3 { fill: color-mix(in oklab, var(--sc-far) 46%, var(--sc-near)); }
  .scene .sc-d4 { fill: color-mix(in oklab, var(--sc-far) 26%, var(--sc-near)); }
  .scene .sc-d5 { fill: color-mix(in oklab, var(--sc-far) 10%, var(--sc-near)); }
}
.scene .sc-d6 { fill: var(--sc-near); }
.scene .sc-skytop { fill: var(--sc-sky0); }
.scene .sc-ink { fill: var(--sc-ink); }
.scene .sc-fore { fill: var(--sc-fore); }
.scene .sc-ink-s { stroke: var(--sc-ink); fill: none; }
.scene .sc-fore-s { stroke: var(--sc-fore); fill: none; }

.scene .sc-sun { fill: var(--sc-glow); opacity: var(--sc-sun-a); }
.scene .sc-glowfield { opacity: var(--sc-glow-a); }
.scene .sc-cloud { opacity: calc(var(--sc-glow-a) * 0.5); }
.scene .sc-star { fill: #fff; opacity: calc(var(--sc-star-a) * var(--o, 1)); }
.scene .sc-mistband { opacity: var(--o, 0.4); }
.scene .sc-shimmer { stroke: var(--sc-glow); stroke-linecap: round; opacity: calc(var(--sc-glow-a) * var(--o, 0.6)); }
.scene .sc-waterline { fill: #fff; opacity: 0.5; }

/* Windows and lamps. Unlit glass sits a little lighter than the wall. */
.scene .sc-unlit { fill: var(--sc-ink); }
@supports (fill: color-mix(in oklab, red, blue)) {
  .scene .sc-unlit { fill: color-mix(in oklab, var(--sc-ink) 72%, var(--sc-far)); }
}
/* --dim lets a painter vary the glow from window to window (1 = full, 0.3 = a faintly lit wall) */
.scene .sc-lit { fill: var(--sc-light); opacity: calc((0.42 + 0.58 * var(--sc-light-a)) * var(--dim, 1)); }
.scene .sc-lamp { fill: var(--sc-light); opacity: calc(0.25 + 0.75 * var(--sc-light-a)); }
.scene .sc-lampglow { opacity: var(--sc-light-a); }
.scene .sc-reflect { fill: var(--sc-light); opacity: calc(0.12 + 0.4 * var(--sc-light-a)); }

/* The name board: dark plate, lamp-lit capitals in the hotel's own typeface. */
.scene .sc-signplate { fill: var(--sc-fore); stroke: var(--sc-light); stroke-width: 1.2; stroke-opacity: calc(0.15 + 0.4 * var(--sc-light-a)); }
.scene .sc-sign {
  fill: var(--sc-light);
  font-family: "Marcellus", "Marcellus Fallback", Georgia, serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: calc(0.35 + 0.65 * var(--sc-light-a));
  transition: fill 0.5s ease;
  transition-delay: 0.9s;
}
.scene .sc-sign.is-tight { letter-spacing: 0.02em; }
.scene.is-dark .sc-sign { fill: var(--sc-ink); }
@supports (fill: color-mix(in oklab, red, blue)) {
  .scene.is-dark .sc-sign { fill: color-mix(in oklab, var(--sc-light) 12%, var(--sc-fore)); }
}
/* On the scroll-linked first screen the picture fills the window and the sign is the largest
   lettering in it: it is lit from the first paint, and the windows carry the lights-on moment.
   (Lighting it late made the browser report the page's main content as arriving late.) */
.reveal.is-scrub .reveal__stage .scene.is-dark .sc-sign { fill: var(--sc-light); transition: none; }

/* "Lights off" start state: add .is-dark, then remove it to switch the lights on one by one. */
.scene .sc-lit,
.scene .sc-lamp,
.scene .sc-lampglow,
.scene .sc-reflect {
  transition: opacity 0.5s ease;
  /* the lights come on in sequence, but the whole building is lit within about a second */
  transition-delay: min(calc(var(--i, 0) * 34ms), 0.85s);
}
.scene.is-dark .sc-lit { opacity: 0.06; }
.scene.is-dark .sc-lamp,
.scene.is-dark .sc-lampglow,
.scene.is-dark .sc-reflect { opacity: 0; }

/* Ambient life — only while .is-live is set (used for the "video banner" state). */
@keyframes sc-twinkle { 0%, 100% { opacity: calc(var(--sc-star-a) * var(--o, 1)); } 50% { opacity: calc(var(--sc-star-a) * var(--o, 1) * 0.25); } }
@keyframes sc-drift { from { transform: translateX(0); } to { transform: translateX(46px); } }
@keyframes sc-ripple { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(14px); } }

.scene.is-live .sc-star.sc-tw { animation: sc-twinkle 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.37s); }
.scene.is-live .sc-cloud { animation: sc-drift 26s ease-in-out infinite alternate; }
.scene.is-live .sc-shimmer { animation: sc-ripple 5.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.6s); }

/* Reduced motion (see the note at the end of base.css): nothing drifts or twinkles. In the
   gentle mode the lights still come on one by one, which is a fade and not a movement; with
   animations switched off they are simply on. */
.reduced-motion:not(.gentle-motion) .scene { transition: none; }
.reduced-motion:not(.gentle-motion) .scene .sc-lit,
.reduced-motion:not(.gentle-motion) .scene .sc-lamp,
.reduced-motion:not(.gentle-motion) .scene .sc-lampglow,
.reduced-motion:not(.gentle-motion) .scene .sc-reflect,
.reduced-motion:not(.gentle-motion) .scene .sc-sign { transition: none; }
.reduced-motion .scene.is-live .sc-star.sc-tw,
.reduced-motion .scene.is-live .sc-cloud,
.reduced-motion .scene.is-live .sc-shimmer { animation: none; }

/* a sign whose name has just changed flickers back on, like a tube catching */
@keyframes sc-relight {
  0% { fill-opacity: 1; }
  18% { fill-opacity: 0.2; }
  40% { fill-opacity: 1; }
  58% { fill-opacity: 0.5; }
  100% { fill-opacity: 1; }
}

.scene .sc-sign.is-relit { animation: sc-relight 0.46s linear 1; }

/* gentle mode: one soft fade instead of a flicker */
.gentle-motion .scene .sc-sign.is-relit {
  animation-name: fade-in !important;
  animation-duration: 0.3s !important;
}

/* ========================================================================== */
/* css/minisite.css */
/* ========================================================================== */

/*
 * The miniature hotel website shown inside the laptop and phone frames.
 *
 * It lives in a .screen (a size container), and every measurement is in cqw, so the whole
 * site scales as one piece with its frame. The hotel speaks in the serif; that typeface is
 * used nowhere else on the page. Pills and round buttons also belong only here.
 *
 * What is on the site depends on the plan. minisite.js reads the comparison data and sets
 * has-* classes on the root:
 *   has-dining, has-events, has-blog   extra pages (tiles and menu entries)
 *   has-video                          the homepage picture moves
 *   has-branding                       the hotel's own colour and lettering
 *   has-social                         social profile links (EvioPro)
 *   has-multi                          a group site with three properties (EvioEnterprise)
 *
 *   .ms--wide   laptop layout        .ms--tall   phone layout
 */

.ms {
  --ms-accent: #0c65c4;
  --ms-display: var(--serif);
  --ms-gap: 2.4cqw;
  /*
   * The fold. The picture always fills the screen; the page below it (booking bar, page
   * tiles) is a white sheet pulled up over its lower part, and the picture slides up by the
   * same amount so the hotel stays in view. --ms-open runs from 0 (picture only, used by the
   * hero) to 1 (the normal view). Both moves are transforms, so the change is cheap.
   */
  --ms-open: 1;
  --ms-fold: 21.5cqw;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
  font-family: var(--sans);
  font-size: 1.45cqw;
  line-height: 1.2;
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
}

.ms--tall {
  --ms-gap: 4cqw;
  --ms-fold: 93cqw;
  font-size: 4.2cqw;
}

/* brand colour and lettering are part of the customisation that starts with EvioElevate */
.ms:not(.has-branding) {
  --ms-accent: #0c65c4;
}

.ms.has-branding[data-face="modern"] {
  --ms-display: var(--sans);
}

/* ---------------------------------------------------------------- the picture */

.ms__pic {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--night);
}

.ms__scene,
.ms__scene-next {
  position: absolute;
  inset: 0;
  transform: translateY(calc(var(--ms-open) * var(--ms-fold) * -1));
}

.ms__scene-next {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.ms__scene-next.is-in {
  opacity: 1;
}

.ms__veil {
  position: absolute;
  inset: 0 0 var(--ms-fold) 0;
  background:
    linear-gradient(95deg, rgba(10, 15, 51, 0.6), rgba(10, 15, 51, 0.12) 52%, rgba(10, 15, 51, 0)),
    linear-gradient(180deg, rgba(10, 15, 51, 0.55), rgba(10, 15, 51, 0) 30%);
  pointer-events: none;
}

.ms--tall .ms__veil {
  background: linear-gradient(180deg, rgba(10, 15, 51, 0.52), rgba(10, 15, 51, 0.1) 36%, rgba(10, 15, 51, 0) 64%);
}

/* Everything drawn over the picture and below it sits in .ms__ui, so it can be faded as one. */
.ms__ui {
  position: absolute;
  inset: 0;
}

/* ---------------------------------------------------------------- menu */

.ms__nav {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  padding: 2.3cqw 3.4cqw;
  font-weight: 500;
  white-space: nowrap;
}

.ms__brand {
  display: flex;
  align-items: center;
  gap: 0.9cqw;
  min-width: 0;
  margin-right: auto;
  font-family: var(--ms-display);
  font-size: calc(2.05cqw * var(--ms-name-scale, 1));
  letter-spacing: 0.01em;
}

.ms.has-branding[data-face="modern"] .ms__brand {
  font-weight: 650;
  letter-spacing: 0;
}

.ms__mark {
  flex: none;
  width: 2.3cqw;
  height: 2.3cqw;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ms__name {
  overflow: hidden;
  max-width: 40cqw;
  text-overflow: ellipsis;
}

.ms__link {
  overflow: hidden;
  max-width: 14cqw;
  margin-left: var(--ms-gap);
  transition: max-width 0.5s var(--ease-out), margin-left 0.5s var(--ease-out), opacity 0.35s ease;
}

/* menu entries a plan does not include are simply not there */
.ms:not(.has-dining) .ms__link[data-f="dining"],
.ms:not(.has-events) .ms__link[data-f="events"],
.ms:not(.has-blog) .ms__link[data-f="blog"],
.ms:not(.has-multi) .ms__link[data-f="multi"],
.ms.has-multi .ms__link[data-f="dining"],
.ms.has-multi .ms__link[data-f="events"],
.ms.has-multi .ms__link[data-f="blog"] {
  max-width: 0;
  margin-left: 0;
  opacity: 0;
}

.ms__cta {
  margin-left: var(--ms-gap);
  padding: 0.9cqw 1.9cqw;
  border-radius: 99cqw;
  background: var(--ms-accent);
  color: #fff;
  font-weight: 600;
  transition: background-color 0.5s ease;
}

.ms__burger,
.ms__bag {
  display: none;
}

.ms--tall .ms__nav {
  justify-content: space-between;
  padding: 11cqw 6cqw 0;
}

.ms--tall .ms__brand {
  gap: 0;
  margin: 0;
  font-size: calc(5.4cqw * var(--ms-name-scale, 1));
}

.ms--tall .ms__name {
  max-width: 62cqw;
}

.ms--tall .ms__mark,
.ms--tall .ms__link,
.ms--tall .ms__cta {
  display: none;
}

.ms--tall .ms__burger,
.ms--tall .ms__bag {
  display: block;
  flex: none;
  width: 6cqw;
  height: 6cqw;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* ---------------------------------------------------------------- headline */

.ms__copy {
  position: absolute;
  left: 3.4cqw;
  top: 9.4cqw;
  max-width: 50cqw;
}

.ms__title {
  display: block;
  font-family: var(--ms-display);
  font-size: 5.6cqw;
  line-height: 1.04;
  text-wrap: balance;
}

.ms.has-branding[data-face="modern"] .ms__title {
  font-size: 4.9cqw;
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: -0.015em;
  line-height: 1.06;
}

.ms__sub {
  display: block;
  max-width: 34cqw;
  margin-top: 1.1cqw;
  font-size: 1.5cqw;
  line-height: 1.4;
  opacity: 0.92;
}

.ms__btn {
  display: inline-block;
  margin-top: 2cqw;
  padding: 1cqw 2.2cqw;
  border-radius: 99cqw;
  background: #fff;
  color: #12154d;
  font-size: 1.45cqw;
  font-weight: 600;
}

.ms--tall .ms__copy {
  left: 7cqw;
  right: 7cqw;
  top: 30cqw;
  max-width: none;
}

.ms--tall .ms__title {
  font-size: 11.4cqw;
}

.ms--tall.has-branding[data-face="modern"] .ms__title {
  font-size: 9.8cqw;
}

.ms--tall .ms__sub {
  max-width: none;
  margin-top: 2.6cqw;
  font-size: 4.1cqw;
}

.ms--tall .ms__btn {
  display: none;
}

/* ---------------------------------------------------------------- on the picture */

/* the homepage video banner (EvioElevate and above) */
.ms__video {
  position: absolute;
  right: 3.4cqw;
  top: 29.4cqw;
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  padding: 0.6cqw 1.4cqw 0.6cqw 0.7cqw;
  border-radius: 99cqw;
  background: rgba(10, 15, 51, 0.55);
  font-size: 1.15cqw;
  font-weight: 500;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
}

.ms__video i {
  display: grid;
  grid-auto-flow: column;
  place-content: center;
  width: 2.1cqw;
  height: 2.1cqw;
  border-radius: 50%;
  background: #fff;
}

.ms__video i::before,
.ms__video i::after {
  content: "";
  width: 0.34cqw;
  height: 0.9cqw;
  margin: 0 0.15cqw;
  border-radius: 1px;
  background: #12154d;
}

.ms:not(.has-video) .ms__video,
.ms.has-multi .ms__video {
  opacity: 0;
  transform: scale(0.8);
}

/* direct-offer flag (a full offers section from EvioElevate; EvioStart has a basic one) */
.ms__offer {
  position: absolute;
  left: 3.4cqw;
  top: 29.2cqw;
  padding: 0.7cqw 1.4cqw;
  border-radius: 0.8cqw;
  background: var(--lamp);
  color: #1a1647;
  font-size: 1.15cqw;
  font-weight: 600;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
}

.ms:not(.has-offers-full) .ms__offer,
.ms.has-multi .ms__offer {
  opacity: 0;
  transform: translateY(1cqw);
}

/* social profile links (set up at no charge with EvioPro) */
.ms__social {
  position: absolute;
  right: 3.4cqw;
  top: 9.6cqw;
  display: flex;
  flex-direction: column;
  gap: 0.9cqw;
}

.ms__social span {
  display: grid;
  place-items: center;
  width: 2.9cqw;
  height: 2.9cqw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  font-size: 1.2cqw;
  font-weight: 700;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
  transition-delay: calc(var(--n, 0) * 60ms);
}

.ms:not(.has-social) .ms__social span {
  opacity: 0;
  transform: translateX(1.4cqw);
}

.ms--tall .ms__video {
  right: 6cqw;
  top: 92cqw;
  gap: 2cqw;
  padding: 1.5cqw 3.2cqw 1.5cqw 1.7cqw;
  font-size: 3.1cqw;
}

.ms--tall .ms__video i {
  width: 5.4cqw;
  height: 5.4cqw;
}

.ms--tall .ms__video i::before,
.ms--tall .ms__video i::after {
  width: 0.85cqw;
  height: 2.3cqw;
  margin: 0 0.38cqw;
}

.ms--tall .ms__offer {
  left: 6cqw;
  top: 92cqw;
  padding: 1.7cqw 3cqw;
  border-radius: 2cqw;
  font-size: 3.1cqw;
}

.ms--tall .ms__social {
  right: 6cqw;
  top: 27cqw;
  gap: 2.2cqw;
}

.ms--tall .ms__social span {
  width: 7.6cqw;
  height: 7.6cqw;
  font-size: 3.2cqw;
}

/* ---------------------------------------------------------------- booking bar */

/* the page below the picture: a white sheet carrying the booking bar and the page tiles */
.ms__lower {
  position: absolute;
  inset: auto 0 0 0;
  height: var(--ms-fold);
  background: #fff;
  transform: translateY(calc((1 - var(--ms-open)) * 100%));
}

/* every plan includes the booking engine, so the bar is always there */
.ms__book {
  position: absolute;
  left: 3.4cqw;
  right: 3.4cqw;
  top: -4.4cqw;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  padding: 0.85cqw;
  border-radius: 1.5cqw;
  background: #fff;
  color: #12154d;
  box-shadow: 0 1.2cqw 3cqw -1.2cqw rgba(10, 15, 51, 0.45);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}

.ms__cell {
  padding: 0.6cqw 1.5cqw;
  border-right: 1px solid rgba(18, 21, 77, 0.12);
}

.ms__cell:nth-child(3) {
  border-right: 0;
}

.ms__cell small {
  display: block;
  font-size: 1.05cqw;
  color: #5a5f91;
}

.ms__cell b {
  font-size: 1.45cqw;
  font-weight: 600;
}

.ms__search {
  display: flex;
  align-items: center;
  padding: 0 2.3cqw;
  border-radius: 1cqw;
  background: var(--ms-accent);
  color: #fff;
  font-size: 1.4cqw;
  font-weight: 600;
  transition: background-color 0.5s ease;
}

.ms--tall .ms__book {
  left: 5cqw;
  right: 5cqw;
  top: -14cqw;
  grid-template-columns: 1fr 1fr;
  row-gap: 2.4cqw;
  padding: 3.4cqw;
  border-radius: 4.4cqw;
  box-shadow: 0 3cqw 8cqw -3cqw rgba(10, 15, 51, 0.45);
}

.ms--tall .ms__cell {
  padding: 0.4cqw 2.6cqw 0.8cqw;
}

.ms--tall .ms__cell:first-child {
  padding-left: 0.8cqw;
}

.ms--tall .ms__cell:nth-child(2) {
  border-right: 0;
}

.ms--tall .ms__cell:nth-child(3) {
  display: none;
}

.ms--tall .ms__cell small {
  font-size: 3cqw;
}

.ms--tall .ms__cell b {
  font-size: 4cqw;
}

.ms--tall .ms__search {
  grid-column: 1 / -1;
  justify-content: center;
  padding: 3cqw;
  border-radius: 2.8cqw;
  font-size: 4.2cqw;
}

/* ---------------------------------------------------------------- the pages below */

/* One tile for each kind of page the plan includes. More plan, more pages. */
.ms__pages {
  position: absolute;
  inset: 5.4cqw 3.4cqw auto 3.4cqw;
  display: flex;
  gap: 1.6cqw;
  transition: opacity 0.4s ease;
}

.ms__tile {
  position: relative;
  flex: none;
  width: 17.36cqw;
  height: 13cqw;
  overflow: hidden;
  border-radius: 1.2cqw;
  background: #eef2fb;
  color: #12154d;
  transition: width 0.55s var(--ease-out), margin 0.55s var(--ease-out), opacity 0.4s ease, transform 0.55s var(--ease-out);
}

.ms__tile-top {
  display: grid;
  place-items: center;
  height: 7.6cqw;
  background: var(--ms-accent);
  color: #fff;
  transition: background-color 0.5s ease;
}

.ms__tile-top svg {
  width: 3.2cqw;
  height: 3.2cqw;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ms__tile-name {
  display: block;
  padding: 1.25cqw 1.3cqw 0;
  font-size: 1.5cqw;
  font-weight: 600;
  white-space: nowrap;
}

.ms__tile-note {
  display: block;
  padding: 0.2cqw 1.3cqw 0;
  font-size: 1.1cqw;
  color: #5a5f91;
  white-space: nowrap;
}

.ms:not(.has-dining) .ms__tile[data-f="dining"],
.ms:not(.has-events) .ms__tile[data-f="events"],
.ms:not(.has-blog) .ms__tile[data-f="blog"] {
  width: 0;
  margin-right: -1.6cqw;
  opacity: 0;
  transform: translateY(1.5cqw);
}

.ms.has-offers-full .ms__tile[data-f="offers"] .ms__tile-note {
  display: none;
}

.ms--tall .ms__pages {
  inset: 28cqw 5cqw auto 5cqw;
  flex-wrap: wrap;
  gap: 3cqw;
}

.ms--tall .ms__tile {
  width: 43.5cqw;
  height: 17cqw;
  border-radius: 3cqw;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}

.ms--tall .ms__tile-top {
  position: absolute;
  inset: 0 auto 0 0;
  width: 14cqw;
  height: auto;
}

.ms--tall .ms__tile-top svg {
  width: 6.4cqw;
  height: 6.4cqw;
}

.ms--tall .ms__tile-name {
  padding: 4.6cqw 0 0 17cqw;
  font-size: 4cqw;
}

.ms--tall .ms__tile-note {
  padding: 0.2cqw 0 0 17cqw;
  font-size: 2.9cqw;
}

.ms--tall:not(.has-dining) .ms__tile[data-f="dining"],
.ms--tall:not(.has-events) .ms__tile[data-f="events"],
.ms--tall:not(.has-blog) .ms__tile[data-f="blog"] {
  display: none;
}

.ms--tall.has-offers-full .ms__tile[data-f="offers"] .ms__tile-name {
  padding-top: 5.6cqw;
}

/* ---------------------------------------------------------------- group website (EvioEnterprise) */

.ms__group {
  position: absolute;
  inset: 5.4cqw 3.4cqw auto 3.4cqw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6cqw;
  opacity: 0;
  transform: translateY(2.4cqw);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.55s var(--ease-out);
}

.ms__prop {
  position: relative;
  overflow: hidden;
  height: 13cqw;
  border-radius: 1.2cqw;
  background: #131a55;
}

.ms__prop-scene {
  position: absolute;
  inset: 0;
}

.ms__prop-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4cqw 1.3cqw 0.9cqw;
  background: linear-gradient(180deg, rgba(10, 15, 51, 0), rgba(10, 15, 51, 0.9));
  font-size: 1.3cqw;
  font-weight: 600;
}

.ms.has-multi .ms__group {
  opacity: 1;
  transform: none;
}

.ms.has-multi .ms__pages {
  opacity: 0;
}

.ms--tall .ms__group {
  inset: 28cqw 5cqw auto 5cqw;
  grid-template-columns: 1fr;
  gap: 2.6cqw;
}

.ms--tall .ms__prop {
  height: 17.6cqw;
  border-radius: 3cqw;
}

.ms--tall .ms__prop-label {
  padding: 5cqw 3.4cqw 2cqw;
  font-size: 3.6cqw;
}

/* Browsers without container-query units cannot size the sample website's lettering: they
   show the landscape alone in the frame rather than a broken page. */
@supports not (width: 1cqw) {
  .ms__ui,
  .ms__lower {
    display: none;
  }
}

/* ========================================================================== */
/* css/sections/head.css */
/* ========================================================================== */

/*
 * Site header. Clear over the dusk hero (white type, white wordmark), then a light bar once
 * the page behind it is light. The hero script switches it with Evio.head.setTone().
 */

.head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-head);
  height: var(--head-h);
  color: #fff;
  transition: background-color var(--dur-2) ease, color var(--dur-2) ease, box-shadow var(--dur-2) ease;
}

.head__in {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.75rem);
  height: 100%;
}

.head__logo {
  display: flex;
  flex: none;
  align-items: center;
  min-height: 2.75rem;
}

.head__logo img {
  width: auto;
  height: 1.5rem;
  /* over the dark hero the wordmark is knocked out to white */
  filter: brightness(0) invert(1);
  transition: filter var(--dur-2) ease;
}

.head__nav {
  display: flex;
  gap: clamp(0.9rem, 1.7vw, 1.6rem);
  margin-left: auto;
  font-size: 1rem;
  font-weight: 500;
}

.head__nav a {
  position: relative;
  padding: 0.6rem 0;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.head__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.3rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}

.head__nav a[aria-current]::after {
  transform: scaleX(1);
}

@media (hover: hover) {
  .head__nav a:hover::after {
    transform: scaleX(1);
  }
}

.head__call {
  display: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.head__cta {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  flex: none;
}

.head__menu {
  display: none;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--r-2);
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
}

.head:not(.is-light):not(.is-open) :focus-visible {
  outline-color: var(--lamp);
}

/* Clear at the very top of the page; once the hero has moved under the bar it takes the
   night colour, so the words stay readable. The scrubbed hero keeps it clear (.is-floating),
   because there the picture is pinned and nothing slides under the bar. */
.head.is-scrolled:not(.is-light):not(.is-open):not(.is-floating) {
  background: var(--night);
  box-shadow: 0 1px 0 var(--line-on-dark);
}

/* clear, over the picture: a veil of its own at the top of the screen keeps the links readable
   over the brightest sky (and tells a contrast checker that the ground here is a picture) */
.head:not(.is-light):not(.is-open):not(.is-scrolled),
.head.is-floating:not(.is-light):not(.is-open) {
  background-image: linear-gradient(180deg, rgba(10, 15, 51, 0.62), rgba(10, 15, 51, 0));
}

/* light state */
.head.is-light,
.head.is-open {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.head.is-light .head__logo img,
.head.is-open .head__logo img {
  filter: none;
}

.head.is-light .head__cta,
.head.is-open .head__cta {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
}

.head.is-light .head__menu,
.head.is-open .head__menu {
  background: var(--ice-2);
}

/* without JavaScript the header never changes tone, so it scrolls away with the hero */
.no-js .head,
.head.is-static {
  position: absolute;
}

/* ---- the full menu (phones and tablets) ---- */
.menu {
  position: absolute;
  inset: 100% 0 auto 0;
  max-height: calc(100vh - var(--head-h));
  max-height: calc(100svh - var(--head-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), var(--shadow-2);
}

.menu__in {
  display: grid;
  gap: var(--s-5);
  padding-block: var(--s-4) var(--s-6);
}

.menu__list {
  display: grid;
}

.menu__list a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.menu__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 40rem) {
  .menu__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--s-6);
  }
}

@media (min-width: 80rem) {
  .head__call {
    display: inline-flex;
  }
}

@media (max-width: 66.99rem) {
  .head__nav {
    display: none;
  }

  .head__cta {
    margin-left: auto;
  }

  .head__menu {
    display: grid;
  }
}

/* on a phone the top of the page shows only the logo and the menu; Enquire joins once the hero has passed */
@media (max-width: 29.99rem) {
  .head:not(.is-light):not(.is-open) .head__cta {
    display: none;
  }

  .head:not(.is-light):not(.is-open) .head__menu {
    margin-left: auto;
  }

  .head__logo img {
    height: 1.3125rem;
  }
}

@media print {
  .head {
    position: static;
    color: var(--ink);
  }

  .head__logo img {
    filter: none;
  }

  .head__nav,
  .head__call,
  .head__cta,
  .head__menu,
  .menu {
    display: none !important;
  }
}

/* without JavaScript the menu cannot open: the button goes, and Enquire stays in reach */
.no-js .head__menu,
.head.is-static .head__menu {
  display: none !important;
}

.no-js .head .head__cta,
.head.is-static .head__cta {
  display: inline-flex !important;
  margin-left: auto;
}

.head__menu-close,
.head.is-open .head__menu-open {
  display: none;
}

.head.is-open .head__menu-close {
  display: block;
}

/* a window under 20rem wide (a phone with its text size doubled): the header keeps the logo and
   the menu, which has Enquire in it */
@media (max-width: 19.99rem) {
  .head .head__cta {
    display: none !important;
  }

  .head .head__menu {
    margin-left: auto;
  }
}

/* without JavaScript, small screens get the section links as a row that scrolls sideways */
@media (max-width: 66.99rem) {
  .no-js .head {
    height: auto;
  }

  .no-js .head__in {
    flex-wrap: wrap;
    row-gap: 0;
    padding-block: 0.6rem 0.25rem;
  }

  .no-js .head__nav {
    display: flex;
    order: 3;
    flex: 0 0 100%;
    gap: 1.25rem;
    margin: 0;
    overflow-x: auto;
    font-size: 0.9375rem;
  }
}

/* ========================================================================== */
/* css/sections/hero.css */
/* ========================================================================== */

/*
 * Hero, and the sample that follows it.
 *
 * Two layouts share this markup.
 *
 * Plain layout (phones, reduced motion, no JavaScript): a night-coloured hero whose top part
 * is a picture of the hotel with the headline in its sky, then the name field, the facts and
 * the buttons; after it, a light block showing the sample website in a device.
 *
 * Scrubbed layout (.is-scrub, added by hero.js on wide screens when motion is welcome): the
 * device block becomes a sticky stage. The device is scaled up until its screen fills the
 * viewport, the hero copy lies over it, and scrolling brings the device back to its size.
 */

.reveal {
  position: relative;
  background: var(--night);
}

/* ---------------------------------------------------------------- first screen */

.reveal__hero {
  position: relative;
  z-index: 2;
  padding-top: var(--head-h);
  color: #fff;
  /* the picture is as wide as the window, scrollbar included; trim what runs past the page */
  overflow-x: hidden;
  overflow-x: clip;
}

.hero__top {
  position: relative;
  isolation: isolate;
  margin-inline: calc(var(--gutter) * -1);
  padding: clamp(1rem, 3.5vh, 2.25rem) var(--gutter) 0;
}

/* the picture runs up behind the header and across the full width */
.hero__picture {
  position: absolute;
  inset: calc(var(--head-h) * -1) calc(50% - 50vw) 0 calc(50% - 50vw);
  z-index: -1;
  overflow: hidden;
  /* the brand's dusk sky, shown until (or instead of) the drawn scene */
  background: linear-gradient(180deg, #0f1a5c, #3a2f96 38%, #8b4aa9 66%, #e0569f 88%, #ffb59a);
}

.hero__picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 51, 0.72), rgba(10, 15, 51, 0.66) 46%, rgba(10, 15, 51, 0.3) 66%, rgba(10, 15, 51, 0) 86%);
  pointer-events: none;
}

.hero__title {
  max-width: 12em;
}

.hero__title span {
  display: block;
}

.hero__lede {
  max-width: 33em;
  margin-top: clamp(0.75rem, 2vh, 1.25rem);
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.94);
  text-wrap: pretty;
}

/* an empty band of sky and hill where the hotel and its sign show through */
.hero__window {
  height: clamp(13rem, 40vh, 19rem);
}

.hero__bottom {
  position: relative;
  display: grid;
  gap: clamp(1rem, 2.6vh, 1.5rem);
  padding-bottom: clamp(1.75rem, 5vh, 3rem);
}

/* The name field: what is typed here appears, lit, on the hotel's sign. */
.namebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: -1.75rem;
  border-radius: var(--r-2);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 50px -22px rgba(5, 8, 40, 0.75);
}

.namebar__field {
  display: block;
  min-width: 0;
  padding: 0.6rem 1rem 0.55rem;
  border-radius: var(--r-2);
  cursor: text;
}

.namebar__field--name {
  border-bottom: 1px solid var(--line);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.namebar__field--place {
  cursor: pointer;
}

.namebar__label {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--ink-2);
}

.namebar__opt {
  font-weight: 400;
  color: var(--ink-3);
}

.namebar__input {
  display: block;
  width: 100%;
  min-height: 2rem;
  padding: 0.1rem 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.namebar__input::placeholder {
  color: #666c98;
  font-weight: 400;
}

.namebar__input:focus-visible {
  outline: none;
}

.namebar__field:focus-within {
  outline: 3px solid var(--lamp);
  outline-offset: 2px;
}

.namebar__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312154d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right center / 1rem no-repeat;
  cursor: pointer;
}

.hero__facts {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.hero__fact dt {
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--text-on-dark-2);
}

.hero__fact dd {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.94);
}

.hero__fig {
  margin-right: 0.15em;
  font-size: 1.625rem;
  font-weight: 760;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  color: var(--lamp);
}

.hero__actions {
  display: grid;
  gap: 0.75rem;
}

.hero__small,
.hero__motion {
  font-size: var(--fs-micro);
  line-height: 1.45;
  color: var(--text-on-dark-2);
}

/* the note that the calmer version is showing, with the way to the full one */
.hero__motion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding-bottom: clamp(1.25rem, 4vh, 2rem);
}

.hero__motion[hidden] {
  display: none;
}

.hero__motion p {
  flex: 1 1 14rem;
  margin: 0;
}

.hero__motion-on {
  flex: none;
  min-height: 2.75rem;
  padding: 0.3rem 0.9rem;
  border: 0;
  border-radius: var(--r-2);
  background: none;
  box-shadow: inset 0 0 0 1.5px rgba(255, 217, 138, 0.7);
  color: var(--lamp);
  font-size: var(--fs-small);
  font-weight: 600;
}

@media (hover: hover) {
  .hero__motion-on:hover {
    background: rgba(255, 217, 138, 0.14);
  }
}

@media (min-width: 36rem) {
  .namebar {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  }

  .namebar__field--name {
    border-right: 1px solid var(--line);
    border-bottom: 0;
    border-radius: var(--r-2) 0 0 var(--r-2);
  }

  .hero__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
  }
}

/* wide screens, plain layout: the headline sits beside the hotel instead of above it */
@media (min-width: 62rem) {
  .hero__top {
    min-height: min(62vh, 38rem);
  }

  /* darken the left of the picture, where the words are */
  .hero__picture::after {
    background:
      linear-gradient(100deg, rgba(10, 15, 51, 0.84) 0%, rgba(10, 15, 51, 0.62) 34%, rgba(10, 15, 51, 0) 62%),
      linear-gradient(180deg, rgba(10, 15, 51, 0.5), rgba(10, 15, 51, 0) 24%);
  }

  /* three lines that never re-wrap, sized so the longest stays clear of the hotel */
  .hero__title {
    max-width: none;
    font-size: clamp(2.25rem, min(0.75rem + 3.7vw, 8.4vh), 4.25rem);
  }

  .hero__title span {
    white-space: nowrap;
  }

  .hero__lede {
    max-width: min(44%, 31em);
  }

  .hero__window {
    height: clamp(3rem, 12vh, 8rem);
  }

  .hero__bottom {
    max-width: 52rem;
  }
}

/* a short window (a laptop with the browser's bars taking their share): less sky above the
   name field, so the buttons stay on the first screen */
@media (min-width: 62rem) and (max-height: 46rem) {
  .hero__top {
    min-height: max(17rem, 50vh);
  }

  .hero__window {
    height: 1.5rem;
  }
}

/*
 * On a roomy screen the note about the calmer version stands beside the name field, over the
 * dark ground of the picture, where it is seen at once. (Narrower than this it stays below the
 * buttons, as on a phone.) The scroll-linked layout never shows it.
 */
@media (min-width: 75rem) {
  .reveal:not(.is-scrub) .reveal__hero-in {
    display: grid;
    grid-template-columns: minmax(0, 52rem) minmax(0, 1fr);
    column-gap: 2rem;
  }

  .reveal:not(.is-scrub) .hero__top {
    grid-column: 1 / -1;
  }

  .hero__motion {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: end;
    position: relative;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.6rem;
    max-width: 17rem;
    margin-top: -1.75rem;
    padding: 0.8rem 0.9rem 0.9rem;
    border: 1px solid var(--line-on-dark);
    border-radius: var(--r-3);
    background: rgba(10, 15, 51, 0.86);
    color: var(--text-on-dark);
  }

  .hero__motion p {
    flex: none;
  }
}

/* ---------------------------------------------------------------- the sample, docked */

.reveal__stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 0% 0%, var(--wash-pink) 0%, rgba(243, 221, 251, 0) 60%),
    radial-gradient(55% 70% at 100% 10%, var(--wash-cyan) 0%, rgba(201, 243, 253, 0) 62%),
    var(--paper);
  color: var(--ink);
}

.reveal__veil {
  display: none;
}

.reveal__dock {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3rem, 9vw, 5.5rem);
}

.reveal__caption {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  min-width: 0;
}

.reveal__caption .h2:focus {
  outline: none;
}

/* the brochure's cover line: what one thing leads to */
.reveal__chain {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 650;
  line-height: 1.3;
}

.reveal__chain li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.reveal__sample {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 30rem;
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.reveal__sample .icon {
  margin-top: 0.15rem;
  color: var(--blue);
}

.devices {
  position: relative;
  transform-origin: 0 0;
  min-width: 0;
}

/* one device per screen size: a phone on phones, a laptop on anything wider */
.devices .laptop {
  display: none;
}

.devices .phone {
  width: min(66vw, 17.5rem);
  margin-inline: auto;
  box-shadow: 0 30px 60px -28px rgba(10, 15, 51, 0.55);
}

@media (min-width: 48rem) {
  .devices .laptop {
    display: block;
    margin-inline: 6.5%;
    filter: drop-shadow(0 34px 34px rgba(10, 15, 51, 0.22));
  }

  .devices .phone {
    display: none;
  }
}

@media (min-width: 62rem) {
  .reveal__dock {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

/* ---------------------------------------------------------------- scrubbed layout (wide screens) */

.reveal.is-scrub {
  height: calc(100vh + 115vh);
  height: calc(100svh + 115vh);
}

.reveal.is-scrub .reveal__hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  pointer-events: none;
}

.reveal.is-scrub .reveal__hero-in {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-block: clamp(1rem, 4vh, 2.75rem) clamp(1.25rem, 4.5vh, 3rem);
}

.reveal.is-scrub .hero__top,
.reveal.is-scrub .hero__bottom {
  margin: 0;
  padding: 0;
  pointer-events: auto;
}

.reveal.is-scrub .hero__top {
  max-width: 52rem;
}

/* the hotel stands in the right half of the picture: keep the facts clear of it */
.reveal.is-scrub .hero__bottom {
  max-width: min(41rem, max(45vw, 31rem));
}

/* scale the headline to the height of the screen as well as its width, so three lines,
   the facts and the buttons always fit above the fold */
.reveal.is-scrub .hero__title {
  font-size: clamp(2.25rem, min(1rem + 4.2vw, 9vh), 4.5rem);
}

.reveal.is-scrub .hero__top {
  min-height: 0;
}

.reveal.is-scrub .hero__title,
.reveal.is-scrub .hero__lede {
  max-width: none;
}

.reveal.is-scrub .hero__lede {
  max-width: 31em;
}

.reveal.is-scrub .hero__picture,
.reveal.is-scrub .hero__window {
  display: none;
}

/* price and delivery side by side, the booking engine line under them: nothing wraps mid-phrase */
.reveal.is-scrub .hero__facts {
  grid-template-columns: max-content max-content;
  gap: 0.7rem 2.5rem;
}

.reveal.is-scrub .hero__fact:last-child {
  grid-column: 1 / -1;
}

.reveal.is-scrub .namebar {
  margin-top: 0;
}

/*
 * A short window. A 1366×768 laptop leaves only about 620px for the page once the browser
 * and the taskbar have taken theirs, so here the headline takes two lines across the sky
 * and the spacing tightens: the name field, the facts and the buttons all stay on screen.
 */
@media (min-width: 62rem) and (max-height: 46rem) {
  .reveal.is-scrub .reveal__hero-in {
    padding-block: 1rem 1.25rem;
  }

  .reveal.is-scrub .hero__top {
    max-width: none;
  }

  .reveal.is-scrub .hero__title {
    font-size: clamp(2.25rem, min(1rem + 4.2vw, 9vh, 5.2vw), 4.5rem);
  }

  .reveal.is-scrub .hero__title span:nth-child(n + 2) {
    display: inline;
  }

  .reveal.is-scrub .hero__lede {
    max-width: none;
    margin-top: 0.6rem;
  }

  .reveal.is-scrub .hero__bottom {
    gap: 0.75rem;
  }

  .reveal.is-scrub .namebar__field {
    padding-block: 0.45rem 0.4rem;
  }
}

/* once the copy has faded it must not catch clicks meant for the sample behind it */
.reveal.is-scrub .reveal__hero.is-away .hero__top,
.reveal.is-scrub .reveal__hero.is-away .hero__bottom {
  pointer-events: none;
}

.reveal.is-scrub .reveal__stage {
  position: sticky;
  top: 0;
  /* drawn over the same screen as the copy above it, which is pinned too */
  margin-top: -100vh;
  margin-top: -100svh;
  height: 100vh;
  height: 100svh;
}

/* darkens the left of the picture so the copy reads; fades with the copy */
.reveal.is-scrub .reveal__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background:
    radial-gradient(75% 80% at 0% 100%, rgba(10, 15, 51, 0.82) 0%, rgba(10, 15, 51, 0.62) 45%, rgba(10, 15, 51, 0) 80%),
    linear-gradient(100deg, rgba(10, 15, 51, 0.8) 0%, rgba(10, 15, 51, 0.56) 36%, rgba(10, 15, 51, 0) 62%),
    linear-gradient(180deg, rgba(10, 15, 51, 0.5) 0%, rgba(10, 15, 51, 0.4) 30%, rgba(10, 15, 51, 0) 50%);
  pointer-events: none;
}

/* the facts lie over the lake, whose bright waterline can run behind a line of text */
.reveal.is-scrub .hero__lede,
.reveal.is-scrub .hero__fact,
.reveal.is-scrub .hero__small {
  text-shadow: 0 0 2px rgba(10, 15, 51, 0.9), 0 1px 14px rgba(10, 15, 51, 0.85);
}

.reveal.is-scrub .reveal__dock {
  height: 100%;
  padding-block: calc(var(--head-h) + 1rem) 1.5rem;
}

/* size the laptop to the height that is left under the header */
.reveal.is-scrub .devices {
  justify-self: end;
  width: min(100%, calc((100vh - var(--head-h) - 5rem) * 1.45));
  width: min(100%, calc((100svh - var(--head-h) - 5rem) * 1.45));
}

.reveal.is-scrub .devices.is-moving {
  will-change: transform;
}

.reveal.is-scrub.is-live .ms__ui {
  will-change: opacity;
}

/* before the first measurement keep the stage dark, so white copy is never shown on white */
.js .reveal.is-scrub:not(.is-ready) .reveal__stage {
  background: linear-gradient(180deg, #0f1a5c, #3a2f96 38%, #8b4aa9 66%, #e0569f 88%, #ffb59a);
}

.js .reveal.is-scrub .reveal__dock {
  transition: opacity 0.5s ease;
}

.js .reveal.is-scrub:not(.is-ready) .reveal__dock {
  opacity: 0;
}

@media print {
  .reveal,
  .reveal.is-scrub {
    height: auto;
    background: none;
  }

  .reveal__hero,
  .reveal.is-scrub .reveal__hero {
    position: static;
    height: auto;
    color: var(--ink);
  }

  .hero__picture,
  .hero__window,
  .namebar,
  .hero__actions,
  .hero__motion,
  .reveal__stage {
    display: none !important;
  }

  .hero__fig {
    color: var(--ink);
  }

  .hero__fact dt,
  .hero__fact dd,
  .hero__small,
  .hero__lede {
    color: var(--ink-2);
  }
}

/* without JavaScript there is no drawn hotel to name and no sample to show */
.no-js .namebar,
.no-js .reveal__stage,
.reveal.is-static .namebar,
.reveal.is-static .reveal__stage {
  display: none;
}

.no-js .hero__window,
.reveal.is-static .hero__window {
  height: 3rem;
}

/* the name field's label has a short form for phones */
.namebar__short {
  display: none;
}

/*
 * Phones. The first screen has to carry the headline, the hotel, the name field, the price and
 * the main button, so: a headline that sets in three lines, a shorter band of picture, the two
 * fields on one row, and the three facts in two rows.
 */
@media (max-width: 35.99rem) {
  .hero__title {
    max-width: none;
    font-size: clamp(1.6rem, 7.8vw, 2.6rem);
  }

  .hero__lede {
    font-size: 1.0625rem;
  }

  .hero__top {
    padding-top: 0.75rem;
  }

  .hero__lede {
    margin-top: 0.6rem;
  }

  .hero__window {
    height: clamp(11rem, 28vh, 15rem);
  }

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

  .namebar__field--name {
    border-right: 1px solid var(--line);
    border-bottom: 0;
    border-radius: var(--r-2) 0 0 var(--r-2);
  }

  .namebar__long {
    display: none;
  }

  .namebar__short {
    display: inline;
  }

  .namebar__input {
    font-size: 1rem;
  }

  .namebar__field--place {
    padding-inline: 0.75rem;
  }

  .namebar__select {
    width: auto;
    max-width: 5.75rem;
  }

  .hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
  }

  .hero__fact:last-child {
    grid-column: 1 / -1;
  }

  .hero__fig {
    font-size: 1.5rem;
  }
}

/* on phones the sample is shown before it is described */
@media (max-width: 47.99rem) {
  .reveal__dock .devices {
    order: -1;
  }
}

.reveal__caption .h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* the headline and the line under it stand on a picture: a soft dark halo keeps them readable
   over the brightest part of any backdrop */
.hero__title,
.hero__lede {
  text-shadow: 0 0 2px rgba(10, 15, 51, 0.55), 0 2px 20px rgba(10, 15, 51, 0.6);
}

/* the smaller line needs more help than the headline: full white, and a closer, denser halo */
.hero__lede {
  color: #fff;
  text-shadow: 0 0 3px rgba(10, 15, 51, 0.85), 0 0 12px rgba(10, 15, 51, 0.8), 0 2px 26px rgba(10, 15, 51, 0.65);
}

/* without JavaScript the links sit in a row under the logo on small screens (the menu cannot open) */
@media (max-width: 66.99rem) {
  .no-js .reveal__hero {
    padding-top: calc(var(--head-h) + 2.75rem);
  }
}

/*
 * The page's load moment, part one: the headline's lines rise into place one after another,
 * the line under them and the name field follow, and meanwhile the hotel's lights come on.
 * Full motion only. It is pure CSS, so it starts with the first paint, before any script.
 */
@keyframes hero-line {
  from {
    opacity: 0;
    transform: translateY(0.55em);
    clip-path: inset(0 -2em 100% -2em);
  }

  to {
    opacity: 1;
    transform: none;
    clip-path: inset(-1em -2em -1em -2em);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
}

html.js:not(.reduced-motion) .hero__title span {
  animation: hero-line 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.js:not(.reduced-motion) .hero__title span:nth-child(2) {
  animation-delay: 0.09s;
}

html.js:not(.reduced-motion) .hero__title span:nth-child(3) {
  animation-delay: 0.18s;
}

html.js:not(.reduced-motion) .hero__lede {
  animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.26s both;
}

html.js:not(.reduced-motion) .hero__bottom {
  animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}

/* where the headline's second and third parts share a line, they still move as blocks */
@media (min-width: 62rem) and (max-height: 46rem) {
  .reveal.is-scrub .hero__title span:nth-child(n + 2) {
    display: inline-block;
  }
}

/* the city hotel's sign is on its roof: on a phone the band of picture is tall enough to show it */
@media (max-width: 39.99rem) {
  .hero__picture[data-place="city"] ~ .hero__window {
    height: 76vw;
  }
}

/* on a phone the first two figures stand on their own line, so no "+" or half a word is left hanging */
@media (max-width: 29.99rem) {
  .hero__fact:not(:last-child) .hero__fig {
    display: block;
  }
}

/*
 * Phones and tablets: the veil stands behind the words only. It runs from the top of the screen
 * to just under the last line of the introduction and then fades out, so the hotel and its sign
 * below keep their full light, whatever the height of the picture.
 */
@media (max-width: 61.99rem) {
  .hero__picture::after {
    display: none;
  }

  .hero__words {
    position: relative;
  }

  .hero__words::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -100vh;
    bottom: -3.25rem;
    left: -100vw;
    right: -100vw;
    background: linear-gradient(180deg, rgba(10, 15, 51, 0.72) 0%, rgba(10, 15, 51, 0.68) calc(100% - 3.25rem), rgba(10, 15, 51, 0) 100%);
    pointer-events: none;
  }
}

@media (max-width: 39.99rem) {
  .hero__picture[data-place="city"] ~ .hero__window {
    height: 86vw;
  }
}

/* over the picture, the small print of the facts is full white */
.reveal.is-scrub .hero__fact dd {
  color: #fff;
}

/*
 * While the picture fills the screen the header's white links stand on it. The stage's own
 * colour is therefore night (automated contrast checks read an element's own background, not
 * the picture drawn over it); the paper and its washes are painted over that by a pseudo-element.
 */
.reveal.is-scrub .reveal__stage {
  isolation: isolate;
  background: var(--night);
}

.reveal.is-scrub .reveal__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 0% 0%, var(--wash-pink) 0%, rgba(243, 221, 251, 0) 60%),
    radial-gradient(55% 70% at 100% 10%, var(--wash-cyan) 0%, rgba(201, 243, 253, 0) 62%),
    var(--paper);
}

.js .reveal.is-scrub:not(.is-ready) .reveal__stage::before {
  display: none;
}

/* on paper there is no picture, so no veil either (it would lie over the logo above it) */
@media print {
  .hero__words::before {
    display: none !important;
  }

  .hero__title,
  .hero__lede {
    text-shadow: none !important;
  }
}

/* ========================================================================== */
/* css/sections/plans.css */
/* ========================================================================== */

/*
 * 01 Choose your website package, 02 Detailed package comparison,
 * 06 Complimentary social media set-up.
 *
 * One set of markup, two arrangements:
 *   phones and tablets   a four-way switcher that stays under the header, then the sample
 *                        website beside the chosen package's price, then its details
 *   wide screens         a ladder of four rungs; the chosen rung opens in place as a night
 *                        block, with the sample website sticking beside it
 * Without JavaScript all four packages are simply listed one after another.
 */

.plans {
  background: var(--paper);
}

/* ---------------------------------------------------------------- phones first */

.plans__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 1.25rem;
  align-items: start;
}

/* the switcher: four packages, always in reach */
.plans__switch {
  position: sticky;
  top: var(--head-h);
  z-index: 5;
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0.5rem var(--gutter);
  border-radius: 0;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}

.plans__switch .seg__opt span {
  display: grid;
  align-content: center;
  min-height: 3rem;
  padding: 0.3rem 0.15rem;
  background: var(--ice-2);
  line-height: 1.2;
  white-space: normal;
}

.plans__switch .seg__opt b {
  font-size: 0.9375rem;
  font-weight: 650;
}

.plans__switch .seg__opt small {
  font-size: 0.75rem;
  font-weight: 500;
}

.plans__switch .seg__opt input:checked + span {
  background: var(--night);
  color: #fff;
}

.plans__switch .seg__opt input:checked + span small {
  color: var(--lamp);
}

.plans__preview {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.plans__device .laptop {
  display: none;
}

.plans__device .phone {
  max-width: 13rem;
  box-shadow: 0 22px 44px -24px rgba(10, 15, 51, 0.5);
}

.plans__showing {
  margin-top: 0.75rem;
  font-size: var(--fs-micro);
  font-weight: 600;
  line-height: 1.35;
}

.plans__sample {
  margin-top: 0.25rem;
}

/* pause or play the sample's moving picture */
.plans__motion {
  font-size: var(--fs-micro);
}

.plans__motion[hidden] {
  display: none;
}

.custom {
  display: none;
}

/* on small screens the ladder gives way to the switcher: only the chosen panel is laid out */
.ladder,
.rung-item,
.plan {
  display: contents;
}

.rung {
  display: none;
}

.rung-item:not(.is-on) .plan__summary,
.rung-item:not(.is-on) .plan__more {
  display: none;
}

.plan__summary {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.plan__more {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.plan__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.6rem;
}

.plan__tagline {
  margin: 0;
  color: var(--ink-3);
  line-height: 1.3;
}

.plan__price {
  margin: 0;
}

.plan__amount {
  display: block;
  font-size: clamp(1.75rem, 8.4vw, 2.75rem);
}

.plan__amount:not([data-amount]) {
  font-size: clamp(1.5rem, 6.4vw, 2.25rem);
  white-space: normal;
}

.plan__note {
  display: block;
  margin-top: 0.3rem;
  font-size: var(--fs-micro);
  line-height: 1.35;
  color: var(--ink-3);
}

.plan__delivery {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.35;
}

.plan__delivery .icon {
  margin-top: 0.1rem;
}

.plan__star {
  padding: 0 0.2em;
  font-weight: 700;
  text-decoration: none;
}

.plan__cta {
  width: 100%;
}

.plan__ideal {
  margin: 0;
  font-weight: 500;
}

.plan__pay {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}

.plan__paylist {
  display: grid;
  margin: 0.4rem 0 0.75rem;
}

.plan__paylist > div {
  display: grid;
  gap: 0.1rem 1.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.plan__paylist dt {
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.plan__paylist dd {
  margin: 0;
  line-height: 1.35;
}

.plan__paylist dd .num {
  margin-right: 0.3rem;
  font-size: 1.1875rem;
  font-weight: 700;
}

.plan__paylist dd small {
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.plan__diff summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.plan__diff summary .icon {
  transition: transform var(--dur-2) var(--ease-out);
}

.plan__diff[open] summary .icon {
  transform: rotate(180deg);
}

.plan__difflist {
  display: grid;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.plan__difflist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.15rem 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  line-height: 1.35;
}

.plan__diff-change {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.plan__diff-from {
  color: var(--ink-3);
}

.plan__call {
  margin: 0;
  font-size: var(--fs-small);
}

.plan__call a {
  display: inline-block;
  padding: 0.5rem 0;
  font-weight: 600;
}

@media (min-width: 30rem) {
  .plan__paylist > div {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: baseline;
  }
}

@media (min-width: 40rem) {
  .plans__grid {
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
    column-gap: 2rem;
  }

  .plan__cta {
    width: auto;
    justify-self: start;
  }
}

/* ---------------------------------------------------------------- wide screens: the ladder */

@media (min-width: 62rem) {
  .plans__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    column-gap: clamp(2rem, 4.5vw, 4rem);
    row-gap: 0;
  }

  .plans__switch {
    display: none;
  }

  /* only the device itself sticks, so nothing below it is ever out of reach */
  .plans__preview {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: calc(var(--head-h) + 0.75rem);
  }

  /* the laptop takes what height is left, so the colour and lettering examples under it are
     never cut off by the bottom of a short window */
  .plans__device {
    max-width: min(100%, calc((100vh - var(--head-h) - 18.5rem) * 1.6));
    max-width: min(100%, calc((100svh - var(--head-h) - 18.5rem) * 1.6));
    min-width: 16rem;
    margin-inline: auto;
  }

  .plans__device .laptop {
    display: block;
    margin-inline: 6.5%;
    filter: drop-shadow(0 30px 30px rgba(10, 15, 51, 0.2));
  }

  .plans__device .phone {
    display: none;
  }

  .plans__showing {
    margin-top: 1.5rem;
    font-size: 1.0625rem;
    font-weight: 650;
  }

  .custom {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: end;
    gap: 0.6rem 1.75rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

  .ladder {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    gap: 0.5rem;
  }

  .rung-item {
    display: block;
    border-radius: var(--r-3);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    transition: background-color var(--dur-2) ease, box-shadow var(--dur-2) ease;
  }

  .rung {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--r-3);
    cursor: pointer;
  }

  /* the chosen rung is the lit one: a night block with its price in lamp light */
  .rung-item.is-on {
    background: var(--night);
    box-shadow: none;
  }

  .rung-item.is-on .rung {
    padding-bottom: 0.4rem;
    cursor: default;
  }

  .rung-item.is-on .rung__price {
    visibility: hidden;
  }

  .plan {
    display: block;
    padding: 0 1.25rem 1.5rem 3.5rem;
  }

  .rung-item:not(.is-on) .plan {
    display: none;
  }

  .plan__summary {
    gap: 0.7rem;
    margin-bottom: 1.5rem;
  }

  /* the rung already shows the name and tagline; keep them for assistive technology only */
  .plan__name,
  .plan__tagline {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .plan__amount {
    font-size: clamp(3rem, 1.8rem + 3.2vw, 4.25rem);
    color: var(--lamp);
  }

  .plan__amount:not([data-amount]) {
    font-size: 2.75rem;
  }

  .plan__note {
    font-size: var(--fs-small);
  }

  .plan__pay {
    border-top-color: var(--line-on-dark);
  }

  .rung-item.is-on .plan__paylist > div,
  .rung-item.is-on .plan__difflist li {
    border-color: var(--line-on-dark);
  }

  .rung-item.is-on .plan__paylist dt,
  .rung-item.is-on .plan__paylist dd small,
  .rung-item.is-on .plan__note,
  .rung-item.is-on .plan__tagline,
  .rung-item.is-on .rung__tagline,
  .rung-item.is-on .plan__diff-from {
    color: var(--text-on-dark-2);
  }

  .rung-item.is-on .plan__cta {
    --btn-bg: var(--lamp);
    --btn-fg: #1a1647;
  }
}

.rung__dot {
  display: grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  border: 2px solid var(--ink-3);
  border-radius: 50%;
  transition: border-color var(--dur-2) ease;
}

.rung__dot::after {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 10px 2px rgba(255, 196, 84, 0.7);
  transform: scale(0);
  transition: transform var(--dur-2) var(--ease-out);
}

.rung-item.is-on .rung__dot {
  border-color: var(--lamp);
}

.rung-item.is-on .rung__dot::after {
  transform: scale(1);
}

.rung__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  font-stretch: 104%;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.rung__tagline {
  display: block;
  font-size: var(--fs-small);
  color: var(--ink-3);
}

.rung__price {
  font-size: 1.375rem;
  font-weight: 700;
}

/* the ring is for the keyboard; a click on a rung does not draw it */
.rung:has(.rung__input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.rung-item.is-on .rung:has(.rung__input:focus-visible) {
  outline-color: var(--lamp);
}

@supports not selector(:has(a)) {
  .rung:focus-within {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
  }

  .rung-item.is-on .rung:focus-within {
    outline-color: var(--lamp);
  }
}

/* example colours and lettering for the sample */
.custom__set {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.custom__legend {
  margin-bottom: 0.4rem;
  padding: 0;
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--ink-2);
}

.custom__swatches {
  display: flex;
  gap: 0.5rem;
}

.swatch {
  position: relative;
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
}

.swatch i {
  position: absolute;
  inset: 0.125rem;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--line-strong);
  transition: box-shadow var(--dur-2) ease;
}

.swatch input:checked + i {
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--c);
}

.swatch input:focus-visible + i {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.custom__note {
  grid-column: 1 / -1;
  max-width: 34rem;
  margin: 0;
}

.custom.is-locked .custom__set {
  opacity: 0.4;
}

.custom.is-locked .swatch,
.custom.is-locked .seg__opt {
  cursor: not-allowed;
}

/* the chosen panel arrives; nothing loops */
@keyframes plan-in {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rung-item.is-entering .plan__summary,
.rung-item.is-entering .plan__more {
  animation: plan-in var(--dur-3) var(--ease-out) both;
}

.rung-item.is-entering .plan__more {
  animation-delay: 60ms;
}

/* ---------------------------------------------------------------- without JavaScript (or if the script fails) */

.no-js .plans__switch,
.no-js .plans__preview,
.plans.is-static .plans__switch,
.plans.is-static .plans__preview {
  display: none;
}

.no-js .plans__grid,
.plans.is-static .plans__grid {
  display: block;
}

.no-js .ladder,
.plans.is-static .ladder {
  display: grid;
  gap: var(--s-7);
}

.no-js .rung-item,
.no-js .ladder .rung-item .plan,
.plans.is-static .rung-item,
.plans.is-static .ladder .rung-item .plan {
  display: block;
  padding: 0;
  background: none;
  box-shadow: none;
}

/* nothing is "chosen" in the plain list, so the chosen rung's night colours are undone */
.no-js .rung-item.is-on .plan__paylist dt,
.no-js .rung-item.is-on .plan__paylist dd small,
.no-js .rung-item.is-on .plan__note,
.no-js .rung-item.is-on .plan__tagline,
.no-js .rung-item.is-on .plan__diff-from,
.plans.is-static .rung-item.is-on .plan__paylist dt,
.plans.is-static .rung-item.is-on .plan__paylist dd small,
.plans.is-static .rung-item.is-on .plan__note,
.plans.is-static .rung-item.is-on .plan__tagline,
.plans.is-static .rung-item.is-on .plan__diff-from {
  color: var(--ink-2);
}

.no-js .rung-item.is-on .plan__paylist > div,
.no-js .rung-item.is-on .plan__difflist li,
.no-js .ladder .plan__pay,
.plans.is-static .rung-item.is-on .plan__paylist > div,
.plans.is-static .rung-item.is-on .plan__difflist li,
.plans.is-static .ladder .plan__pay {
  border-color: var(--line);
}

.no-js .rung-item.is-on .plan__cta,
.plans.is-static .rung-item.is-on .plan__cta {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
}

.no-js .rung,
.plans.is-static .rung {
  display: none;
}

.no-js .rung-item .plan__summary,
.no-js .rung-item .plan__more,
.plans.is-static .rung-item .plan__summary,
.plans.is-static .rung-item .plan__more {
  display: grid;
  margin-bottom: 1.25rem;
}

.no-js .plan__name,
.no-js .plan__tagline,
.plans.is-static .plan__name,
.plans.is-static .plan__tagline {
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
  white-space: normal;
}

.no-js .plan__amount,
.plans.is-static .plan__amount {
  color: var(--ink);
}

/* the comparison's controls need the script; without it the whole table is simply there */
.no-js .compare__tools,
.no-js .cmp__picks,
.plans.is-static .compare__tools,
.plans.is-static .cmp__picks {
  display: none;
}

/* if the script stopped after it had lit a rung, take the night colours off that rung as well */
.plans.is-static .rung-item.on-dark {
  --tick: var(--blue);
  color: var(--ink);
}

.plans.is-static .rung-item.on-dark a:not(.btn) {
  color: var(--blue);
}

.plans.is-static .rung-item.on-dark .muted {
  color: var(--ink-3);
}

.plans.is-static .rung-item.on-dark .reco {
  color: var(--blue);
}

/* ---------------------------------------------------------------- 02 comparison */

.compare {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.compare__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
}

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

.compare__hint {
  grid-column: 1;
  font-size: var(--fs-small);
  color: var(--ink-3);
}

.compare__chev {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.7rem;
  border-radius: var(--r-2);
  background: var(--ice-2);
  transition: transform var(--dur-3) var(--ease-out);
}

.compare[open] .compare__chev {
  transform: rotate(180deg);
}

.compare__body {
  padding-bottom: 1.5rem;
}

.compare__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.compare__also {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  font-size: var(--fs-small);
}

.compare__also .select {
  width: auto;
  min-width: 11rem;
}

.compare__diff {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: var(--fs-small);
  font-weight: 500;
  cursor: pointer;
}

.compare__diff input {
  width: 1.5rem;
  height: 1.5rem;
  accent-color: var(--ink);
}

.compare__foot {
  margin-top: 1rem;
  max-width: 46rem;
}

.cmp th:first-child {
  width: 34%;
}

.cmp td,
.cmp thead th[data-plan] {
  text-align: center;
}

/* the row of package names stays in view while the table scrolls */
.cmp thead th {
  position: sticky;
  top: var(--head-h);
  z-index: 2;
  padding: 0.6rem 0.4rem 0.7rem;
  background: var(--paper);
  vertical-align: bottom;
  border-bottom: 1px solid var(--line-strong);
}

.cmp__corner {
  font-size: 1.0625rem;
  font-weight: 650;
}

.cmp__name {
  display: block;
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.25rem);
  font-weight: 700;
  font-stretch: 104%;
  letter-spacing: -0.01em;
}

.cmp__tagline {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 400;
  color: var(--ink-3);
}

.cmp__price th,
.cmp__price td {
  font-size: 1.0625rem;
  font-weight: 700;
}

.cmp__delivery th,
.cmp__delivery td {
  font-weight: 600;
}

.cmp__group th {
  padding-top: 1.5rem;
  font-size: var(--fs-small);
  font-weight: 680;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.cmp__sub {
  display: block;
  font-size: var(--fs-micro);
  color: var(--ink-3);
}

/* included is a tick; not included is a quiet dash */
.cmp__yes {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  vertical-align: middle;
}

.cmp__no {
  color: #8a8fb5;
}

.cmp__picks th,
.cmp__picks td {
  padding-block: 1rem;
  border-bottom: 0;
}

.cmp__pick.is-chosen,
.cmp__pick.is-chosen:hover {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

/* the chosen package: a night header and a rule down each side of its column */
.cmp[data-chosen="start"] [data-plan="start"],
.cmp[data-chosen="elevate"] [data-plan="elevate"],
.cmp[data-chosen="pro"] [data-plan="pro"],
.cmp[data-chosen="enterprise"] [data-plan="enterprise"] {
  box-shadow: inset 2px 0 0 var(--ink), inset -2px 0 0 var(--ink);
}

.cmp[data-chosen="start"] thead [data-plan="start"],
.cmp[data-chosen="elevate"] thead [data-plan="elevate"],
.cmp[data-chosen="pro"] thead [data-plan="pro"],
.cmp[data-chosen="enterprise"] thead [data-plan="enterprise"] {
  background: var(--night);
  color: #fff;
  box-shadow: none;
}

.cmp[data-chosen="start"] thead [data-plan="start"] .evio em,
.cmp[data-chosen="elevate"] thead [data-plan="elevate"] .evio em,
.cmp[data-chosen="pro"] thead [data-plan="pro"] .evio em,
.cmp[data-chosen="enterprise"] thead [data-plan="enterprise"] .evio em {
  color: var(--lamp);
}

.cmp[data-chosen="start"] thead [data-plan="start"] .cmp__tagline,
.cmp[data-chosen="elevate"] thead [data-plan="elevate"] .cmp__tagline,
.cmp[data-chosen="pro"] thead [data-plan="pro"] .cmp__tagline,
.cmp[data-chosen="enterprise"] thead [data-plan="enterprise"] .cmp__tagline {
  color: var(--text-on-dark-2);
}

.cmp[data-chosen="start"] .cmp__picks [data-plan="start"],
.cmp[data-chosen="elevate"] .cmp__picks [data-plan="elevate"],
.cmp[data-chosen="pro"] .cmp__picks [data-plan="pro"],
.cmp[data-chosen="enterprise"] .cmp__picks [data-plan="enterprise"] {
  box-shadow: inset 2px 0 0 var(--ink), inset -2px 0 0 var(--ink), inset 0 -2px 0 var(--ink);
}

/* "show only what differs" */
.cmp.is-diff tr.is-same,
.cmp.is-diff tbody.is-same {
  display: none;
}

/* narrow screens: two packages side by side, the chosen one and one other */
@media (max-width: 55.99rem) {
  .compare__also {
    display: flex;
  }

  /* two packages side by side: exact columns, so nothing can push the table past the screen */
  .js .cmp {
    table-layout: fixed;
  }

  .js .cmp th:first-child {
    width: 38%;
  }

  .js .cmp th,
  .js .cmp td {
    overflow-wrap: anywhere;
  }

  .js .cmp .cmp__name {
    font-size: 0.9375rem;
  }

  /* figures may wrap in a narrow column ("4–5 working days") */
  .js .cmp .num {
    white-space: normal;
  }

  .js .cmp [data-plan]:not(.is-shown) {
    display: none;
  }

  .cmp th,
  .cmp td {
    padding-inline: 0.4rem;
  }

  /* without the script every column is there; let the table scroll sideways */
  .no-js .compare__scroll {
    overflow-x: auto;
  }

  .no-js .cmp {
    min-width: 44rem;
  }

  .no-js .cmp thead th {
    position: static;
  }
}

/* ---------------------------------------------------------------- 06 social media set-up (EvioPro) */

.social {
  display: grid;
  gap: 1.5rem 3.5rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.social__lead {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.social__lead p {
  margin: 0;
  max-width: 34rem;
}

.social__platforms {
  font-weight: 600;
}

.social__was {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.social__value strong {
  display: block;
  font-size: 1.125rem;
}

.social__list {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

@media (min-width: 56rem) {
  .social {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

@media print {
  .plans__switch,
  .plans__preview,
  .plan__cta,
  .plan__diff,
  .compare__tools,
  .cmp__picks {
    display: none !important;
  }

  .cmp thead th {
    position: static;
  }

  .rung-item.is-on {
    background: none;
  }

  .plan__amount {
    color: var(--ink);
  }
}

/* gentle mode (see base.css): the chosen panel fades in without rising */
.gentle-motion .rung-item.is-entering .plan__summary,
.gentle-motion .rung-item.is-entering .plan__more {
  animation-name: fade-in !important;
  animation-duration: var(--dur-3) !important;
}

/* the one-line explanation of AEO and GEO under the first package that includes them */
.plan__gloss {
  margin: 0;
}

/* on a phone each difference takes two lines: what it is, then how it changes */
@media (max-width: 29.99rem) {
  .plan__difflist li {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan__diff-change {
    justify-content: flex-start;
    text-align: left;
  }
}

/* small links in a package panel: a proper tap area without moving the text */
.plan__star {
  display: inline-block;
  min-width: 1.5rem;
  padding: 0.25rem 0.4rem;
  margin: -0.25rem -0.2rem;
  text-align: center;
}

.plan__call a {
  display: inline-block;
  padding-block: 0.75rem;
}

/* the comparison's sticky heading stays short on the narrowest phones */
@media (max-width: 22.99rem) {
  .js .cmp .cmp__tagline {
    display: none;
  }
}

/* on phones the caption under the sample says "Sample", so the longer note is not repeated */
@media (max-width: 61.99rem) {
  .js .plans__sample {
    display: none;
  }

  .plan__summary {
    align-self: start;
    padding-top: 0.25rem;
  }

  .plans__motion {
    text-align: left;
  }
}

@media (hover: hover) and (min-width: 62rem) {
  .rung-item:not(.is-on) {
    transition: background-color var(--dur-1) ease, box-shadow var(--dur-1) ease;
  }

  .rung-item:not(.is-on):hover {
    background: var(--ice);
    box-shadow: inset 0 0 0 1.5px var(--ink-3);
  }

  .swatch i {
    transition: box-shadow var(--dur-2) ease, transform var(--dur-1) var(--ease-out);
  }

  .swatch:hover input:not(:disabled) + i {
    transform: scale(1.08);
  }

  .compare__summary:hover .h3,
  .compare__summary:hover h3 {
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
  }
}

.plans__showing {
  overflow-wrap: anywhere;
}

/* if this section's script did not start, the comparison keeps all four columns */
@media (max-width: 55.99rem) {
  .js .plans.is-static .cmp [data-plan]:not(.is-shown) {
    display: table-cell;
  }

  .plans.is-static .compare__scroll {
    overflow-x: auto;
  }

  .plans.is-static .cmp {
    table-layout: auto;
    min-width: 44rem;
  }
}

@media (max-width: 19.99rem) {
  .plans__switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .plans__preview,
  .plan__summary {
    grid-column: 1;
  }

  .plan__summary {
    grid-row: 3;
  }

  .plan__more {
    grid-row: 4;
  }
}

@media (forced-colors: active) {
  /* the chosen package's dot, and the colour examples (which are pictures of colours) */
  .rung__dot::after,
  .swatch i {
    forced-color-adjust: none;
  }

  .rung-item.is-on .rung__dot::after {
    background: Highlight;
    box-shadow: none;
  }

  .rung-item.is-on {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }

  .swatch input:checked + i {
    outline: 3px solid Highlight;
    outline-offset: 2px;
  }

  /* ticks in the comparison table are a mask over a background colour */
  .cmp__yes {
    forced-color-adjust: none;
    background-color: CanvasText;
  }

  .cmp[data-chosen] thead th.is-shown,
  .cmp thead th {
    border-bottom: 2px solid CanvasText;
  }
}

/* visually hidden labels inside the scrolling table are placed against the scroller, not the page */
.compare__scroll {
  position: relative;
}

/* the narrowest phones: smaller table text so no word is cut in two, and buttons that fit their column */
@media (max-width: 22.49rem) {
  .js .cmp tbody th,
  .js .cmp tbody td {
    font-size: 0.8125rem;
  }

  .js .cmp .cmp__picks .btn {
    padding-inline: 0.25rem;
  }
}

/* the package switch gives the longest name the room it needs */
@media (min-width: 20rem) and (max-width: 29.99rem) {
  .plans__switch {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.5fr);
  }
}

/* ---- on paper ---- */
@media print {
  /* the whole comparison fits the page: no sideways scroller, columns of equal width */
  .compare__scroll {
    overflow: visible !important;
  }

  .cmp {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
    font-size: 0.75rem;
  }

  .cmp th,
  .cmp td {
    padding-inline: 0.25rem;
    overflow-wrap: anywhere;
  }

  .cmp thead th {
    position: static !important;
    background: none !important;
    box-shadow: none !important;
  }

  /* tick marks are drawn with a background, which printers leave out unless told otherwise */
  .cmp__yes {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background-color: #111 !important;
  }
}

/* ---- forced colours: the chosen package's column keeps a mark ---- */
@media (forced-colors: active) {
  .cmp[data-chosen="start"] [data-plan="start"],
  .cmp[data-chosen="elevate"] [data-plan="elevate"],
  .cmp[data-chosen="pro"] [data-plan="pro"],
  .cmp[data-chosen="enterprise"] [data-plan="enterprise"] {
    border-inline: 2px solid Highlight;
  }

  .cmp[data-chosen="start"] thead [data-plan="start"],
  .cmp[data-chosen="elevate"] thead [data-plan="elevate"],
  .cmp[data-chosen="pro"] thead [data-plan="pro"],
  .cmp[data-chosen="enterprise"] thead [data-plan="enterprise"] {
    border-top: 2px solid Highlight;
  }
}

/* ========================================================================== */
/* css/sections/booking.css */
/* ========================================================================== */

/*
 * 03 Eviotel.ai Booking Engine — the night band.
 *
 * The one place on the page where lamp yellow is used freely: the lit windows of the
 * facade are the content. Everything else in the band stays quiet so they carry it.
 */

/* ------------------------------------------------------------------ opening */

.booking__statement {
  max-width: 34rem;
  margin-top: var(--s-4);
  color: var(--text-on-dark);
}

/* ------------------------------------------------------------------ commercials */

.booking__figures {
  display: grid;
  gap: var(--s-4);
  margin: 0;
}

.booking__figure {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line-on-dark);
}

.booking__figure dt {
  color: var(--text-on-dark-2);
}

.booking__figure dd {
  font-size: 2rem;
}

.booking__promise {
  max-width: 36rem;
  margin-top: var(--s-6);
}

/* keep each of the two sentences whole when the heading wraps */
.booking__line {
  display: inline-block;
}

.booking__promise > * + * {
  margin-top: var(--s-3);
}

.booking__figures {
  max-width: 30rem;
}

/* wide: figures on the left, what they mean on the right, on the same columns as the stage below */
@media (min-width: 64rem) {
  .booking__terms {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
    column-gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
  }

  .booking__figures {
    max-width: 26rem;
  }

  .booking__promise {
    margin-top: 0;
  }
}

/* ------------------------------------------------------------------ the hundred windows */

.booking__compare {
  margin-top: var(--s-8);
}

.booking__compare-head .lede {
  margin-top: var(--s-3);
}

.booking__stage {
  margin-top: var(--s-6);
}

/* four long labels: two by two, so each stays on one or two lines at 360px */
.booking__seg {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 30rem;
}

.booking__seg .seg__opt span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 0.35em;
  min-height: 3.25rem;
  padding: 0.35rem 0.5rem;
  line-height: 1.2;
  white-space: normal;
  text-wrap: balance;
}

/* the shared ring is blue, which does not show on night */
.booking__seg .seg__opt input:focus-visible + span {
  outline-color: var(--lamp);
}

/*
 * Without JavaScript, or if this section's script failed (core.js then adds .is-static),
 * the switch cannot redraw the building. The 6% state and the table of all four rows remain.
 */
html.no-js .booking__seg,
.booking.is-static .booking__seg {
  display: none;
}

html.no-js .booking__readout,
.booking.is-static .booking__readout {
  margin-top: 0;
}

.booking__readout {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.booking__readout-label {
  color: var(--text-on-dark-2);
}

.booking__amount {
  font-size: clamp(2.75rem, 2rem + 4vw, 4rem);
  color: var(--text-on-dark);
}

/* the facade: a hotel front at dusk, ten floors of ten windows */
.booking__building {
  --wall: var(--night-2);
  --trim: #2c3688;
  --glass: #060a26;
  width: min(100%, 21rem);
  margin: var(--s-6) auto 0;
}

.booking__facade {
  position: relative;
  /* room either side for the cornice and the pavement to overhang the walls */
  padding-inline: 0.5rem;
}

/* a rooftop sign: letters on a rail, standing on two posts */
.booking__roof {
  display: grid;
  justify-items: center;
}

.booking__roof::after {
  content: "";
  width: 3.5rem;
  height: 0.45rem;
  border-inline: 2px solid var(--trim);
}

.booking__sign {
  max-width: 100%;
  padding: 0 0.15rem;
  border-bottom: 2px solid var(--trim);
  overflow: hidden;
  color: var(--lamp);
  font-size: 1rem;
  font-weight: 760;
  font-stretch: 120%;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.35;
}

/* the visitor's own hotel name, when they have given one: set tighter so more of it fits */
.booking__sign.is-name {
  font-size: 0.875rem;
  font-stretch: 105%;
  letter-spacing: 0.08em;
  text-indent: 0;
}

.booking__cornice {
  height: 0.5rem;
  margin-inline: -0.5rem;
  border-radius: 2px 2px 0 0;
  background: var(--trim);
}

.booking__windows {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 7px 5px;
  padding: 12px 12px 10px;
  background: var(--wall);
}

/* one window: dark glass, a sill beneath it */
.booking__win {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 2px 2px 0 0;
  background: var(--glass);
  box-shadow: 0 2px 0 var(--trim);
}

/* a thin bar across the glass makes it a window and not a tile, and keeps it one unit to count */
.booking__win::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 34%;
  height: 1px;
  background: var(--wall);
  opacity: 0.55;
}

/* the light is a layer of its own so that switching a window is an opacity change only */
.booking__win::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--lamp);
  /* --wait is set per window by booking.js so a run of windows changes one after another */
  transition: opacity var(--dur-2) ease var(--wait, 0ms);
}

.booking__win.is-off::before {
  opacity: 0;
}

/* ground floor: a canopy over a lit double door */
.booking__ground {
  display: grid;
  justify-items: center;
  align-content: end;
  height: 3.5rem;
  border-top: 3px solid var(--trim);
  background: var(--wall);
}

.booking__canopy {
  width: 6rem;
  height: 0.4rem;
  border-radius: 2px;
  background: var(--trim);
}

.booking__door {
  position: relative;
  width: 3rem;
  height: 2rem;
  margin-top: 0.3rem;
  background: var(--lamp);
}

.booking__door::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--wall);
}

.booking__street {
  height: 0.3rem;
  margin-inline: -0.5rem;
  border-radius: 0 0 2px 2px;
  background: var(--trim);
}

.booking__key {
  margin-top: var(--s-3);
  text-align: center;
  text-wrap: balance;
}

/* from tablet width the building stands on the left and the words sit beside it */
@media (min-width: 46rem) {
  .booking__stage {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "building pick"
      "building table"
      "building savings";
    column-gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
  }

  .booking__pick {
    grid-area: pick;
  }

  .booking__building {
    grid-area: building;
    justify-self: center;
    width: min(100%, 25rem);
    margin-top: 0;
  }

  .booking__table {
    grid-area: table;
  }

  .booking__savings {
    grid-area: savings;
  }
}

@media (min-width: 64rem) {
  .booking__stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  }
}

/* the brochure's four rows, all visible at once */
.booking__table {
  max-width: 30rem;
  margin-top: var(--s-6);
}

/* the column headings are for screen readers only, so their row takes no room */
.booking__table thead th {
  padding: 0;
  border: 0;
}

.booking__table tbody th,
.booking__table tbody td {
  padding-inline: 0;
  border-bottom-color: var(--line-on-dark);
}

.booking__table td {
  text-align: right;
  font-weight: 600;
}

/* the row shown on the building carries a small lit window, so it is not marked by colour alone */
.booking__table [data-rate] th {
  position: relative;
  padding-left: 1.5rem;
}

.booking__table tr[aria-current] th::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.75rem;
  height: 0.9rem;
  margin-top: -0.45rem;
  border-radius: 2px 2px 0 0;
  background: var(--lamp);
}

.booking__table tr[aria-current] th,
.booking__table tr[aria-current] td {
  color: var(--lamp);
  font-weight: 700;
}

/* ------------------------------------------------------------------ savings */

.booking__savings {
  margin-top: var(--s-7);
}

.booking__savings-label {
  max-width: 26rem;
}

.booking__savings-amount {
  margin-top: var(--s-3);
  font-size: clamp(1.75rem, 0.9rem + 5vw, 3.125rem);
  color: var(--lamp);
}

/* beside the building the range has to fit the narrower column */
@media (min-width: 46rem) {
  .booking__savings-amount {
    font-size: min(4.6vw, 3.125rem);
  }
}

.booking__disclaimer {
  max-width: 34rem;
  margin-top: var(--s-3);
}

/* ------------------------------------------------------------------ your own figure */

.booking__own {
  margin-top: var(--s-7);
  border-top: 1px solid var(--line-on-dark);
}

/* a calculator that cannot calculate is left out; its default rows repeat the table above */
html.no-js .booking__own,
.booking.is-static .booking__own {
  display: none;
}

.booking__own-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 3.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.booking__own-chev {
  transition: transform var(--dur-2) var(--ease-out);
}

.booking__own[open] .booking__own-chev {
  transform: rotate(180deg);
}

.booking__own-body {
  padding-bottom: var(--s-5);
}

.booking__own-field {
  max-width: 22rem;
}

/* the shared field styles are drawn for the light page; these are their night colours */
.booking__own-field .field__hint {
  color: var(--text-on-dark-2);
}

.booking__own-field .field__error {
  color: #ffb3a7;
}

.booking__own-input:focus-visible {
  border-color: var(--lamp);
  box-shadow: 0 0 0 3px rgba(255, 217, 138, 0.5);
}

.booking__own-input[aria-invalid="true"] {
  border-color: #ffb3a7;
  box-shadow: 0 0 0 2px #ffb3a7;
}

.booking__own-table {
  margin-top: var(--s-5);
}

.booking__own-caption {
  padding-bottom: var(--s-2);
  text-align: left;
  font-weight: 600;
}

/* the switch's labels: on one line where there is room, and on a phone the name over the
   rate, with no dash left hanging at the end of a line */
.booking__who,
.booking__rate,
.booking__dash {
  font: inherit;
}

.booking__who,
.booking__rate {
  white-space: nowrap;
}

@media (max-width: 35.99rem) {
  .booking__seg .seg__opt > span {
    display: block;
    padding-block: 0.5rem;
    text-align: center;
  }

  .booking__who,
  .booking__rate {
    display: block;
  }

  .booking__who {
    font-size: 1rem;
  }

  .booking__rate {
    font-weight: 500;
  }

  .booking__dash {
    display: none;
  }
}

@media (hover: hover) {
  .booking__own-summary:hover span:first-child {
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
  }
}

/* wide: the three figures stand in a row across the band, with what they mean under them
   (side by side they left a hole in the middle of the band) */
@media (min-width: 64rem) {
  .booking__terms {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--s-6);
  }

  .booking__figures {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 4rem);
    max-width: none;
  }

  .booking__figure {
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--s-2);
    padding: var(--s-4) 0 0;
    border-bottom: 0;
    border-top: 1px solid var(--line-on-dark);
  }

  .booking__figure dd {
    font-size: clamp(2.5rem, 1.5rem + 2.6vw, 3.75rem);
  }

  .booking__promise {
    max-width: 44rem;
  }
}

/* the calculator reads as something to open, not as the foot of the section */
.booking__own {
  padding-inline: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-3);
}

.booking__own-summary {
  min-height: 4rem;
  font-size: 1.0625rem;
}

@media (min-width: 64rem) {
  .booking__own[open] .booking__own-body {
    display: grid;
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }

  /* the result stands beside the field; .booking__table's own grid-area belongs to the stage above */
  .booking__own-body .booking__own-table {
    grid-area: 1 / 2 / span 2 / 3;
    margin-top: 0;
  }

  .booking__own-body .booking__disclaimer {
    grid-column: 1;
  }
}

/* the hundred windows are a picture: keep its own colours in forced-colours mode */
@media (forced-colors: active) {
  .booking__facade,
  .booking__facade * {
    forced-color-adjust: none;
  }
}

/* on paper the table carries the four figures; the picture of windows and its switch are left out */
@media print {
  .booking__facade,
  .booking__seg,
  .booking__readout,
  .booking__key,
  .booking__own {
    display: none !important;
  }

  .booking__table tr {
    font-weight: inherit;
  }
}

/* ========================================================================== */
/* css/sections/demo.css */
/* ========================================================================== */

/*
 * 03 Booking demonstration.
 *
 * Two surfaces. The guest's side is the hotel's own website: a light sheet with the hotel's
 * name in the serif. The hotel's side stays on the night surface, where a new reservation
 * can be lamp-lit.
 */

.demo__grid {
  display: grid;
  gap: var(--s-7);
}

.demo__guest,
.demo__desk {
  min-width: 0;
  max-width: 36rem;
}

/* wide screens: the guest's side and the hotel's side stand next to each other */
@media (min-width: 60rem) {
  .demo__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(3rem, 6vw, 6rem);
  }

  .demo .demo__site {
    padding: var(--s-6);
  }

  /* the hotel's side is already in view here, so the link down to it is not needed */
  .demo .demo__jump {
    display: none;
  }
}

/* ------------------------------------------------------------------ the hotel's website */

.demo__site {
  --tick: var(--blue);
  margin-top: var(--s-4);
  padding: var(--s-5) var(--s-4);
  border-radius: var(--r-2);
  background: var(--paper);
  color: var(--ink);
}

/*
 * base.css switches links, ghost buttons and focus rings to their dark-surface colours inside
 * .on-dark. This sheet is light again, so switch them back.
 */
.demo .demo__site :focus-visible {
  outline-color: var(--blue);
}

.demo .demo__site a:not(.btn),
.demo .demo__site .link-btn {
  color: var(--blue);
}

.demo .demo__site a:not(.btn):hover,
.demo .demo__site .link-btn:hover {
  color: var(--blue-deep);
}

.demo .demo__site .btn--ghost {
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

@media (hover: hover) {
  .demo .demo__site .btn--ghost:hover {
    background: rgba(18, 21, 77, 0.06);
  }
}

.demo__hotel {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  overflow-wrap: anywhere; /* the visitor's own hotel name may be one long word */
}

.demo__needs-js {
  margin-top: var(--s-3);
  font-size: var(--fs-small);
}

html.js .demo:not(.is-static) .demo__needs-js {
  display: none;
}

/* The three steps: a numbered sequence, the current one open. */
.demo__steps {
  margin-top: var(--s-4);
  counter-reset: demo-step;
}

.demo__step {
  counter-increment: demo-step;
  padding-block: var(--s-4);
  border-top: 1px solid var(--line);
}

.demo__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content; /* so the focus ring it gets when a step opens hugs the words */
  padding-right: 0.5rem;
}

.demo__title::before {
  content: counter(demo-step);
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font-size: var(--fs-small);
  font-weight: 650;
  font-stretch: 100%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.demo__note {
  margin-top: 0.2rem;
  padding-left: 2.35rem;
  font-size: var(--fs-small);
  color: var(--ink-3);
}

.demo__body {
  margin-top: var(--s-4);
}

/* a step that has been completed: its number becomes a tick */
.demo__step.is-done .demo__title::before {
  content: "";
  box-shadow: none;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 1.3rem no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 1.3rem no-repeat;
}

/* the step the guest is on */
.demo__step.is-current .demo__title::before {
  box-shadow: none;
  background: var(--ink);
  color: #fff;
}

/* the last step, once reached, is a result: a tick on green */
.demo__step[data-step="done"].is-current .demo__title::before {
  content: "";
  background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 1.1rem no-repeat;
}

.demo__step.is-done .demo__note {
  color: var(--ink-2);
}

/* the short entrance of a step's contents, replayed by the script when the step changes */
@keyframes demo-in {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
}

html.js:not(.reduced-motion) .demo__body.is-in {
  animation: demo-in var(--dur-3) var(--ease-out) both;
}

.demo__go {
  width: 100%;
  margin-top: var(--s-4);
}

/* step 1: what the guest is searching for */
.demo__query {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3) var(--s-4);
}

.demo__query dt,
.demo__receipt dt {
  font-size: var(--fs-small);
  color: var(--ink-3);
}

.demo__query dd {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.demo__change {
  margin-top: var(--s-2);
}

.demo__change summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--blue);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
  cursor: pointer;
}

.demo__dates {
  display: grid;
  gap: var(--s-3);
  padding-bottom: var(--s-2);
}

/* step 2: the sample offer and the bill */
.demo__code {
  margin-top: var(--s-4);
}

.demo__code-label {
  margin-bottom: var(--s-2);
  font-size: var(--fs-small);
  font-weight: 600;
}

.demo__code-on {
  margin-top: 0;
  font-size: var(--fs-small);
  line-height: 1.4;
}

.demo__code-on .link-btn {
  display: flex;
  margin-top: 0.35rem;
}

.demo__bill {
  margin-top: var(--s-4);
}

.demo__bill > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: 0.3rem;
}

.demo__bill-total {
  margin-top: 0.3rem;
  border-top: 1px solid var(--line-strong);
  font-weight: 650;
}

.demo .demo__bill-total {
  padding-top: 0.6rem;
}

/* step 3: the confirmation */
.demo__receipt > div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: var(--s-3);
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.demo__receipt dd {
  font-weight: 600;
}

.demo__after {
  margin-top: var(--s-4);
  font-size: var(--fs-small);
}

/* on a phone the hotel's side is further down the page: the next thing to do is go and look */
.demo__jump {
  display: flex;
  margin-top: var(--s-4);
}

.demo__again {
  width: 100%;
  margin-top: var(--s-3);
}

/* rooms: a native radio group, one room to a row */
.demo__rooms {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.demo__room {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.15rem 0.6rem;
  min-height: 3.5rem;
  padding: 0.75rem 0.3rem; /* narrow, so "Executive Room" and its price share a line at 360px */
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background-color var(--dur-2) ease;
}

.demo__room input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--blue);
}

.demo__room-name {
  font-size: 1rem;
  font-weight: 600;
}

.demo__room-price {
  font-weight: 650;
}

.demo__per {
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--ink-2);
}

.demo__room-facts {
  grid-column: 2 / -1;
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--ink-3);
}

.demo__room:has(input:checked) {
  background: var(--ice);
}

/* ------------------------------------------------------------------ what the hotel sees */

.demo__table {
  margin-top: var(--s-4);
}

.demo .demo__table th,
.demo .demo__table td {
  padding-inline: 0.3rem; /* four columns have to fit a 360px phone */
  border-bottom-color: var(--line-on-dark);
  vertical-align: top;
}

.demo .demo__table th:first-child,
.demo .demo__table td:first-child {
  padding-left: 0;
}

.demo .demo__table th:last-child,
.demo .demo__table td:last-child {
  padding-right: 0;
  text-align: right;
}

.demo__table thead th {
  color: var(--text-on-dark-2);
  font-weight: 500;
}

.demo .demo__table [data-empty] td {
  padding-block: var(--s-4);
  text-align: left;
  color: var(--text-on-dark-2);
}

/* the new reservation is the one lit thing on this side */
.demo .demo__table .demo__row th {
  padding-left: 0.7rem;
  box-shadow: inset 3px 0 0 var(--lamp);
  font-weight: 600;
}

@keyframes demo-row-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

html.js:not(.reduced-motion) .demo__row.is-in {
  animation: demo-row-in var(--dur-4) var(--ease-out) both;
}

.demo__split {
  margin-top: var(--s-5);
}

.demo__figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}

/* the two labels may wrap differently; the figures still sit on one line */
.demo__figures > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;
}

.demo__figures dt {
  font-size: var(--fs-small);
  line-height: 1.35;
  color: var(--text-on-dark-2);
}

.demo__figures dd {
  font-size: 1.75rem;
}

.demo__illus {
  margin-bottom: var(--s-3);
  font-weight: 600;
}

.demo__ota {
  margin-top: var(--s-5);
  max-width: 34rem;
}

.demo__terms {
  margin-top: var(--s-5);
  max-width: 34rem;
}

/* ------------------------------------------------------------------ key features */

.demo__features {
  margin-top: var(--s-8);
}

.demo__features .ticks {
  margin-top: var(--s-5);
  max-width: 46rem;
}

/* gentle mode (see base.css): a step's contents and the new reservation fade in without moving */
html.js.gentle-motion .demo__body.is-in,
html.js.gentle-motion .demo__row.is-in {
  animation: fade-in var(--dur-3) var(--ease-out) both;
  animation-duration: var(--dur-3) !important;
}

/* side by side, the hotel's side follows the guest's steps down the screen, so the new
   reservation arrives where it can be seen */
@media (min-width: 60rem) and (min-height: 36rem) {
  .demo__desk {
    position: sticky;
    top: calc(var(--head-h) + 1.5rem);
  }
}

.no-js .demo input[type="radio"],
.demo.is-static input[type="radio"] {
  display: none;
}

/* without the script the rooms are a plain list: nothing looks chosen, nothing answers a tap */
.no-js .demo__room,
.demo.is-static .demo__room {
  cursor: default;
  pointer-events: none;
}

.no-js .demo__room:has(input:checked),
.demo.is-static .demo__room:has(input:checked) {
  border-color: var(--line);
  background: none;
  box-shadow: none;
}

/* on paper the current step's number is dark on white, like the others */
@media print {
  .demo__step.is-current .demo__title::before {
    background: none;
    box-shadow: inset 0 0 0 1.5px #111;
    color: #111;
  }
}

/* ========================================================================== */
/* css/sections/care.css */
/* ========================================================================== */

/*
 * 05 EvioCare: the care service, the support and renewal table, and what is paid after launch.
 * Phone first; everything is prefixed care.
 */

/* ---------- the promise ---------- */

.care__promise {
  margin-top: var(--s-5);
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem);
  font-weight: 500;
  font-stretch: 103%;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.care__promise-line {
  display: block;
}

/* blue is Eviotel's own colour on the light page: the first line is our half of the bargain */
.care__promise-line--ours {
  color: var(--blue);
}

/* ---------- the service and its price ---------- */

.care__offer {
  display: grid;
  gap: var(--s-7);
}

.care__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.75rem;
  margin-top: var(--s-3);
}

.care__amount {
  font-size: clamp(3.25rem, 2.4rem + 4vw, 4.75rem);
}

.care__unit {
  font-size: var(--fs-lead);
  font-weight: 600;
}

/* the asterisk is a link to the note; give it a finger-sized target without moving the text */
.care__star {
  display: inline-block;
  position: relative; /* keeps the hidden words anchored to the asterisk */
  min-width: 1.625rem;
  margin: -0.5rem -0.45rem;
  padding: 0.5rem 0;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

.care__intro {
  max-width: 34rem;
  margin-top: var(--s-4);
  color: var(--ink-2);
}

/* ---------- the twelve inclusions ---------- */

.care__ticks {
  margin-top: var(--s-4);
  gap: 0.7rem 1.75rem;
}

.care__footnote {
  max-width: 34rem;
  margin-top: var(--s-4);
}

@media (min-width: 34rem) {
  /* two columns that read downwards, so the order stays the brochure's */
  .care__ticks {
    grid-auto-flow: column;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, auto);
  }
}

@media (min-width: 62rem) {
  .care__offer {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s-8);
    align-items: start;
  }
}

/* ---------- support and renewal commercials ---------- */

.care__commercials,
.care__after {
  margin-top: var(--s-8);
  padding-top: var(--s-7);
  border-top: 1px solid var(--line);
}

.care__table-note {
  margin-top: var(--s-2);
}

.care__table {
  margin-top: var(--s-5);
}

.care__table thead th {
  vertical-align: bottom;
}

.care__table tbody th {
  font-weight: 600;
}

/* "Your package" sits above the name of the chosen column */
.care__yours {
  display: block;
  margin-bottom: 0.15rem;
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--blue-deep);
}

/* The chosen package's column. A mark, not a control: nothing here can be pressed. */
.care__table .is-chosen {
  background: var(--ice);
}

.care__table td.is-chosen {
  font-weight: 600;
}

/* the same night heading as the chosen column of the comparison table */
.care__table thead .is-chosen {
  background: var(--night);
  color: #fff;
  border-radius: var(--r-1) var(--r-1) 0 0;
}

.care__table thead .is-chosen .evio em {
  color: var(--lamp);
}

.care__table thead .is-chosen .care__yours {
  color: var(--text-on-dark-2);
}

.care__compare {
  display: none;
}

@media (max-width: 43.99rem) {
  .care__compare {
    display: grid;
    max-width: 22rem;
    margin-top: var(--s-5);
  }

  .care__table th,
  .care__table td {
    padding: 0.7rem 0.5rem;
  }

  .care__table tr > :first-child {
    padding-left: 0;
  }

  /*
   * With the script running, a phone shows two package columns: the chosen one and one
   * the visitor picks to set beside it. The class is added by care.js, so if the script
   * never runs the stacked version below is used instead.
   */
  .care__table--pair [data-plan]:not(.is-chosen):not(.is-other) {
    display: none;
  }

  .care__table--pair {
    table-layout: fixed;
  }

  .care__table--pair tr > :first-child {
    width: 34%;
  }

  /* room for the longest name, EvioEnterprise */
  .care__table--pair thead th {
    padding-right: 0.25rem;
  }

  /* Without the script: each row becomes a short list of the four packages. */
  .care__table:not(.care__table--pair) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .care__table:not(.care__table--pair),
  .care__table:not(.care__table--pair) tbody,
  .care__table:not(.care__table--pair) tr,
  .care__table:not(.care__table--pair) tbody th,
  .care__table:not(.care__table--pair) td {
    display: block;
  }

  .care__table:not(.care__table--pair) tbody th {
    padding: var(--s-5) 0 var(--s-2);
    border-bottom: 0;
    font-size: var(--fs-body);
  }

  .care__table:not(.care__table--pair) td {
    display: flex;
    justify-content: space-between;
    gap: var(--s-4);
    padding: 0.45rem 0;
  }

  .care__table:not(.care__table--pair) td::before {
    content: attr(data-label);
    color: var(--ink-2);
  }
}

/* ---------- what you pay after launch ---------- */

.care__for {
  max-width: 40rem;
  margin-top: var(--s-3);
  color: var(--ink-2);
}

/* A real sequence in time: a line down the left with a dot at each moment. */
.care__steps {
  margin-top: var(--s-6);
}

.care__step {
  position: relative;
  padding: 0 0 var(--s-6) 2rem;
}

.care__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 0.875rem;
  height: 0.875rem;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: var(--paper);
}

.care__step::after {
  content: "";
  position: absolute;
  left: calc(0.4375rem - 1px);
  top: 1.45rem;
  bottom: -0.05rem;
  width: 2px;
  background: var(--line-strong);
}

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

/* the last charge carries on, so its line fades out rather than stopping at a dot */
.care__step:last-child::after {
  bottom: 0;
  background: linear-gradient(var(--line-strong), transparent);
}

.care__when {
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-2);
}

.care__pay {
  margin-top: var(--s-2);
  font-size: 1.125rem;
  font-weight: 640;
  line-height: 1.25;
}

.care__figure {
  margin-right: 0.15em;
  font-size: 2rem;
}

.care__what,
.care__free {
  max-width: 30rem;
  margin-top: var(--s-2);
  color: var(--ink-2);
}

.care__free {
  margin-top: var(--s-3);
  gap: var(--s-3);
}

.care__term {
  white-space: nowrap;
}

.care__enterprise {
  max-width: 40rem;
  margin-top: var(--s-6);
}

@media (min-width: 56rem) {
  /* wide screens: the same sequence, left to right */
  .care__steps {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr);
  }

  .care__step {
    padding: 2rem var(--s-6) 0 0;
  }

  .care__step::after {
    left: 1.2rem;
    right: 0.3rem;
    top: calc(0.4375rem - 1px + 0.05rem);
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .care__step::before {
    top: 0;
  }

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

  .care__step:last-child::after {
    bottom: auto;
    background: linear-gradient(to right, var(--line-strong), transparent);
  }
}

/* ---------- the one entrance ---------- */

/*
 * Both classes are added by care.js, and only when motion is welcome, so without the
 * script or with reduced motion the ticks are simply there. The words never wait.
 */
.care__ticks--waiting > li::before {
  opacity: 0;
  transform: scale(0.3);
}

.care__ticks--arriving > li::before {
  transition: opacity var(--dur-2) ease, transform var(--dur-3) var(--ease-out);
  transition-delay: calc(var(--care-i, 0) * 70ms);
}

/* the narrowest phones: three columns only fit with smaller figures */
@media (max-width: 22.49rem) {
  .care__table--pair {
    font-size: var(--fs-micro);
  }

  .care__table--pair th,
  .care__table--pair td {
    padding-inline: 0.35rem;
  }
}

/* On a phone the timeline would repeat, at length, the four lines of the table just above it
   (and each package already lists what is paid, and when). It is left for wider screens. */
@media (max-width: 47.99rem) {
  .care__after {
    display: none;
  }
}

/* links that stand alone at the end of a line get a comfortable tap area */
.care__term {
  display: inline-block;
  padding-block: 0.3rem;
}

@media print {
  .care__table thead .is-chosen {
    background: none !important;
  }
}

/* ========================================================================== */
/* css/sections/addons.css */
/* ========================================================================== */

/*
 * 07 Optional add-on services — a tariff card.
 * One sheet of paper on the ice background: names on the left, prices on the right, a dotted
 * leader carrying the eye across. On a phone the price drops under the name.
 */

.addons__card {
  max-width: 52rem;
  padding: var(--s-2) var(--s-4) var(--s-4);
  border-radius: var(--r-2);
  background: var(--white);
}

.addons__item {
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
}

/* phone: name, then price beneath it; the dots wait for a wider line */
.addons__line {
  display: block;
}

.addons__dots {
  display: none;
}

.addons__name {
  display: block;
  font-size: 1.125rem;
  font-weight: 640;
  line-height: 1.25;
}

.addons__price {
  display: block;
  margin-top: var(--s-1);
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

.addons__fig {
  font-size: 1.125rem;
  color: var(--ink);
}

.addons__text {
  max-width: 60ch;
  margin-top: var(--s-2);
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.addons__gloss {
  max-width: 60ch;
  margin-top: var(--s-1);
  font-size: var(--fs-micro);
  color: var(--ink-3);
}

.addons__sub {
  margin-top: var(--s-6);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line-strong);
}

.addons__gst {
  margin-top: var(--s-4);
  font-size: var(--fs-small);
  color: var(--ink-2);
}

@media (min-width: 40rem) {
  .addons__card {
    padding: var(--s-4) var(--s-6) var(--s-5);
  }

  .addons__line {
    display: flex;
  }

  .addons__dots {
    display: block;
  }

  .addons__name {
    flex: 0 1 auto;
  }

  .addons__price {
    flex: none;
    margin-top: 0;
    text-align: right;
  }
}

/* ---------- the tick box: "ask about this in my enquiry" ---------- */

.addons__ask {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem; /* 44px tap target */
  margin-top: var(--s-2);
  margin-bottom: calc(-1 * var(--s-2));
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

/* a real checkbox, redrawn so the tick can arrive rather than blink on */
.addons__box {
  position: relative;
  flex: none;
  -webkit-appearance: none;
  appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  border: 2px solid var(--ink-3);
  border-radius: var(--r-1);
  background: var(--white);
  cursor: pointer;
}

.addons__box::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--blue);
  opacity: 0;
  transform: scale(0.6);
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1);
}

.addons__box::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: scale(0.4);
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1);
}

.addons__box:checked::before,
.addons__box:checked::after {
  opacity: 1;
  transform: none;
}

.addons__box:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (hover: hover) {
  .addons__ask:hover .addons__box {
    border-color: var(--blue);
  }
}

/* Windows high-contrast mode drops backgrounds, so give the native box back */
@media (forced-colors: active) {
  .addons__box {
    -webkit-appearance: auto;
    appearance: auto;
  }

  .addons__box::before,
  .addons__box::after {
    display: none;
  }
}

/* a chosen line: a blue bar in the margin and blue dots */
.addons__item {
  position: relative;
}

.addons__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--s-4));
  top: var(--s-4);
  bottom: var(--s-4);
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--blue);
  opacity: 0;
  transform: scaleY(0.2);
  transform-origin: 50% 0;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2);
}

.addons__item.is-on::before {
  opacity: 1;
  transform: none;
}

.addons__item.is-on .addons__dots {
  border-color: var(--blue);
}

/* ---------- complimentary with EvioPro ---------- */

.addons__comp {
  margin-top: var(--s-2);
  font-size: var(--fs-small);
  color: var(--ink-2);
}

@media (min-width: 40rem) {
  .addons__item::before {
    left: calc(-1 * var(--s-6));
  }
}

/* EvioPro is the chosen package: the note becomes the line's answer, with a tick */
.addons__comp.is-on {
  position: relative;
  padding-left: 1.7rem;
  font-weight: 600;
  color: var(--ink);
}

.addons__comp.is-on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.14em;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--tick);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- status line under the card ---------- */

.addons__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  max-width: 52rem;
  margin-top: var(--s-5);
}

.addons__count {
  flex: 1 1 14rem;
  font-weight: 500;
}

/* ---------- wider screens ---------- */

/* from here the tick boxes stand in their own column at the right, as on an order form */
@media (min-width: 56rem) {
  /* the card runs the full measure so its right edge meets the page's */
  .addons__card,
  .addons__status {
    max-width: none;
  }

  .addons__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--s-5);
    align-items: start;
  }

  .addons__line,
  .addons__text,
  .addons__gloss,
  .addons__comp {
    grid-column: 1;
  }

  .addons__ask {
    grid-column: 2;
    grid-row: 1 / span 4;
    min-width: 9.5rem;
    margin-block: -0.6rem 0; /* centres the 44px target on the name's line */
  }

  /* a complimentary line has no tick box; keep its price in the same column as the others */
  .addons__item.is-free {
    padding-right: calc(9.5rem + var(--s-5));
  }
}

/* heading and status stay beside the card while the list scrolls past */
@media (min-width: 80rem) {
  .addons__wrap {
    display: grid;
    grid-template-columns: 21rem minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: var(--s-7);
  }

  .addons__head {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: var(--s-6);
  }

  .addons__card {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: none;
  }

  .addons__status {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    position: sticky;
    top: calc(var(--head-h) + var(--s-5));
    display: block;
    margin-top: 0;
    padding-top: var(--s-5);
    border-top: 1px solid var(--line-strong);
  }

  .addons__cta {
    margin-top: var(--s-4);
  }
}

/* the struck-through standalone value is quiet all the way across */
.addons__price .strike .addons__fig {
  color: inherit;
}

/* ---------- motion ---------- */

.addons__dots {
  transform-origin: 0 50%;
}

/*
 * One-off entrance. addons.js adds .is-waiting only when motion is welcome, and swaps it for
 * .is-arriving the first time the card is on screen: the lines arrive in order and each
 * leader draws across to its price. Without the script neither class exists.
 */
html.js .addons.is-waiting .addons__item {
  opacity: 0;
  transform: translateY(0.75rem);
}

html.js .addons.is-waiting .addons__dots {
  opacity: 0;
  transform: translateY(-0.28em) scaleX(0);
}

.addons.is-arriving .addons__item {
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-4) var(--ease-out);
  transition-delay: calc(var(--addons-i, 0) * 50ms);
}

.addons.is-arriving .addons__dots {
  transition: transform var(--dur-4) var(--ease-out), opacity var(--dur-2);
  transition-delay: calc(var(--addons-i, 0) * 50ms + 160ms);
}

/* the status line nudges when its count changes */
.addons__count.is-changed {
  animation: addons-count var(--dur-3) var(--ease-out);
}

@keyframes addons-count {
  from {
    opacity: 0.2;
    transform: translateY(0.35rem);
  }
}

/* gentle mode (see base.css): the status line fades instead of nudging */
.gentle-motion .addons__count.is-changed {
  animation-name: fade-in !important;
  animation-duration: var(--dur-3) !important;
}

/* ========================================================================== */
/* css/sections/groups.css */
/* ========================================================================== */

/*
 * 04 EvioEnterprise: designed for hotel groups.
 * Phone first. The structure figure is one column with a rail down the left;
 * from 48rem it becomes the brochure's tree: hub, three microsites, shared tools.
 */

/* ------------------------------------------------------------ the structure figure */

.groups__figure {
  --groups-line: var(--line-strong);
  --groups-rail: 1.25rem;
}

.groups__map {
  position: relative;
}

/* the group website: the one dark block, because everything hangs off it */
.groups__hub {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-3);
  background: var(--night);
}

.groups__node-title {
  margin-bottom: var(--s-2);
}

.groups__points {
  display: grid;
  gap: 0.15rem;
  font-size: var(--fs-small);
  color: var(--text-on-dark-2);
}

/* connectors are drawn only on wide screens */
.groups__link {
  display: none;
}

/* the three microsites hang off a rail on the phone */
.groups__sites {
  position: relative;
  padding: var(--s-5) 0 var(--s-5) var(--groups-rail);
  margin-left: var(--groups-rail);
}

/* the rail runs from the group website down to the shared tools */
.groups__sites::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--groups-line);
  transform-origin: 50% 0;
}

.groups__site-list {
  display: grid;
  gap: var(--s-4);
}

.groups__site {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 10fr);
  align-items: center;
  gap: var(--s-4);
}

/* the stub that joins a microsite to the rail */
.groups__site::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--groups-rail));
  top: 50%;
  width: calc(var(--groups-rail) - 0.25rem);
  height: 2px;
  margin-top: -1px;
  background: var(--groups-line);
  transform-origin: 0 50%;
}

/* fixed shape, so nothing moves when the picture is drawn into it */
.groups__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-2);
  background: var(--night);
}

/* shown until the picture is drawn, and for good when scripts are off */
.groups__thumb-name {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--s-2);
  color: var(--text-on-dark-2);
  font-size: var(--fs-micro);
  font-weight: 600;
  text-align: center;
}

.groups__site-text {
  display: grid;
  gap: 0.1rem;
  line-height: 1.3;
}

.groups__site-name {
  font-size: 1.125rem;
  font-weight: 640;
}

.groups__site-note {
  font-size: var(--fs-small);
  color: var(--ink-3);
}

/* what every property shares */
.groups__shared {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-radius: var(--r-3);
  background: var(--ice);
}

.groups__share {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-5);
}

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

.groups__share .icon-tile {
  background: var(--white);
}

.groups__share-text {
  min-width: 0;
}

/* Discover, Compare, Select, Book is a real order, so it is numbered */
.groups__steps {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.5rem 1.25rem;
  counter-reset: groups-step;
  font-size: var(--fs-small);
}

.groups__steps > li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  counter-increment: groups-step;
}

.groups__steps > li::before {
  content: counter(groups-step);
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-micro);
  font-weight: 650;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.groups__areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.groups__areas > li {
  padding: 0.22em 0.65em;
  border-radius: var(--r-1);
  background: var(--white);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
}

.groups__caption {
  max-width: 62ch;
  margin-top: var(--s-4);
  color: var(--ink-3);
}

/* ------------------------------------------------------------ benefits */

.groups__benefits {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
}

.groups__sub {
  margin-bottom: var(--s-5);
}

.groups__benefit-list {
  display: grid;
  gap: var(--s-5);
}

.groups__benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
}

.groups__benefit-title {
  margin-bottom: 0.2rem;
}

.groups__benefit-text {
  max-width: 44ch;
  color: var(--ink-2);
}

/* ------------------------------------------------------------ commercials */

.groups__commercials {
  display: grid;
  gap: var(--s-6);
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-top: 1px solid var(--line);
}

.groups__terms-text {
  max-width: 52ch;
  color: var(--ink-2);
}

.groups__small {
  max-width: 56ch;
  margin-top: var(--s-4);
  color: var(--ink-3);
}

/* links in running text keep a finger-sized target without changing the line spacing */
.groups__small a {
  display: inline-block;
  padding-block: 0.35rem;
  margin-block: -0.35rem;
}

.groups__cta {
  margin-top: var(--s-5);
}

/* ------------------------------------------------------------ wide screens */

@media (min-width: 48rem) {
  /* the figure becomes the brochure's tree: one hub, three branches, one shared base */
  .groups__figure {
    --groups-gap: var(--s-5);
    --groups-link-h: 3.5rem;
    /* centre of the first of three equal columns */
    --groups-col: calc((100% - 2 * var(--groups-gap)) / 6);
  }

  .groups__hub {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    align-items: center;
    padding: var(--s-5) var(--s-6);
  }

  .groups__hub .groups__node-title {
    font-size: var(--fs-h3);
  }

  .groups__points {
    grid-auto-flow: column;
    gap: var(--s-5);
    font-size: 1rem;
  }

  /* one row when the column is wide enough, wrapping when it is not */
  .groups__steps {
    display: flex;
    flex-wrap: wrap;
  }

  .groups__link {
    position: relative;
    display: block;
    height: var(--groups-link-h);
  }

  /* the lower connector is the upper one turned over: three lines gather into one */
  .groups__link--up {
    transform: scaleY(-1);
  }

  .groups__line {
    position: absolute;
    background: var(--groups-line);
  }

  .groups__line--trunk,
  .groups__line--drop {
    width: 2px;
    height: 50%;
    margin-left: -1px;
    transform-origin: 50% 0;
  }

  .groups__line--trunk {
    top: 0;
    left: 50%;
  }

  .groups__line--drop {
    top: 50%;
  }

  .groups__line--drop-a {
    left: var(--groups-col);
  }

  .groups__line--drop-b {
    left: 50%;
  }

  .groups__line--drop-c {
    left: calc(100% - var(--groups-col));
  }

  .groups__line--bar {
    top: calc(50% - 1px);
    left: calc(var(--groups-col) - 1px);
    right: calc(var(--groups-col) - 1px);
    height: 2px;
  }

  .groups__sites {
    padding: 0;
    margin: 0;
    border: 0;
  }

  .groups__site-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--groups-gap);
  }

  /* on a tree the microsites are nodes, so each gets an outline to hang lines from */
  .groups__site {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    background: var(--white);
  }

  .groups__sites::before,
  .groups__site::before {
    content: none;
  }

  .groups__thumb {
    border-radius: 0;
  }

  .groups__site-text {
    padding: var(--s-4) var(--s-5) var(--s-5);
  }

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

  .groups__share {
    padding: var(--s-6);
  }

  .groups__share + .groups__share {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .groups__benefit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-6) var(--s-7);
  }

  .groups__commercials {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: var(--s-7);
  }
}

@media (min-width: 64rem) {
  .groups__ticks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------ one-off entrance */

/*
 * The connector lines draw themselves once, from the group website downwards, when the
 * figure first comes into view. groups.js adds .groups__map--draw only when motion is
 * welcome, and .is-in to each connector as it arrives, so without scripts, with reduced
 * motion, or if the script stops, every line is simply there.
 */
.groups__map--draw .groups__line,
.groups__map--draw .groups__sites::before,
.groups__map--draw .groups__site::before {
  transition: transform var(--groups-t, var(--dur-3)) var(--ease-in-out) var(--groups-d, 0ms);
}

.groups__map--draw .groups__sites:not(.is-in)::before,
.groups__map--draw .groups__link:not(.is-in) .groups__line--trunk,
.groups__map--draw .groups__link:not(.is-in) .groups__line--drop {
  transform: scaleY(0);
}

.groups__map--draw .groups__sites:not(.is-in) .groups__site::before,
.groups__map--draw .groups__link:not(.is-in) .groups__line--bar {
  transform: scaleX(0);
}

/* phone: the rail runs down, and a stub reaches each microsite as the rail passes it */
.groups__map--draw .groups__sites::before {
  --groups-t: 900ms;
}

.groups__map--draw .groups__site:nth-child(1)::before { --groups-d: 150ms; }
.groups__map--draw .groups__site:nth-child(2)::before { --groups-d: 400ms; }
.groups__map--draw .groups__site:nth-child(3)::before { --groups-d: 650ms; }

/* wide: trunk, then the bar outwards from the middle, then the three drops */
.groups__map--draw .groups__line { --groups-t: 260ms; }
.groups__map--draw .groups__link--down .groups__line--bar { --groups-d: 240ms; --groups-t: 360ms; }
.groups__map--draw .groups__link--down .groups__line--drop { --groups-d: 560ms; }

/* the lower connector is turned over, so it grows from its far edge and in reverse order */
@media (min-width: 48rem) {
  .groups__link--up .groups__line--trunk,
  .groups__link--up .groups__line--drop {
    transform-origin: 50% 100%;
  }
}

.groups__map--draw .groups__link--up .groups__line--bar { --groups-d: 240ms; --groups-t: 360ms; }
.groups__map--draw .groups__link--up .groups__line--trunk { --groups-d: 560ms; }

/* a section whose script stopped part-way shows the finished figure */
.is-static .groups__line,
.is-static .groups__sites::before,
.is-static .groups__site::before {
  transform: none !important;
}

@media (min-width: 61rem) and (max-width: 72.49rem) {
  .groups__areas {
    max-width: 17.75rem;
  }
}

@media (max-width: 68rem) {
  .groups__steps {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 0.4rem 1.25rem;
  }
}

/* 320px phones: the two columns of steps stay inside the card */
@media (max-width: 22.49rem) {
  .groups__share {
    gap: var(--s-3);
    padding: var(--s-4);
  }

  .groups__steps {
    column-gap: 0.75rem;
  }
}

/* ========================================================================== */
/* css/sections/terms.css */
/* ========================================================================== */

/*
 * 08 Why Eviotel.ai? + 09 Terms & conditions
 *
 * Two quiet, typographic sections. Nothing here is boxed: the reasons are a ruled list,
 * the terms are numbered clauses in a measured column (two columns from 48rem).
 */

/* ------------------------------------------------------------------ why */

.terms-why__list {
  display: grid;
  gap: 0 var(--s-6);
}

.terms-why__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--s-4);
  row-gap: 0.2rem;
  align-items: start;
  align-content: start; /* items in a row share a height; keep the text under its title */
  padding-block: var(--s-4);
}

/* the icon sits in a small tile, as in the hotel groups list */
.terms-why__icon {
  grid-row: span 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.7rem;
  border-radius: var(--r-2);
  background: var(--paper);
  color: var(--blue);
}

.terms-why__title {
  align-self: end;
}

/* the icons are drawn in, one after another, the first time the list is seen
   (terms.js adds the classes; every shape in the icon sheet has pathLength 1) */
.terms-why__list.is-waiting .terms-why__icon {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.terms-why__list.is-arriving .terms-why__icon {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.terms-why__text {
  grid-column: 2;
  max-width: 34rem;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-2);
}

.terms-why__abbr {
  text-decoration: none;
}

@media (min-width: 40rem) {
  .terms-why__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 72rem) {
  .terms-why__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------ terms */

.terms__points {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.terms__point {
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
}

.terms__point-text {
  font-weight: 600;
  line-height: 1.35;
}

.terms__point-link {
  display: inline-block;
  padding-block: 0.6rem;
  margin-bottom: -0.6rem;
  font-size: var(--fs-small);
}

.terms__body {
  margin-top: var(--s-7);
}

.terms__group-title {
  margin-bottom: var(--s-5);
}

.terms__item {
  --terms-indent: 2.1rem; /* the number column; the clause text hangs under its title */
  position: relative;
  isolation: isolate; /* keeps the mark behind the words, whatever the section background */
  max-width: 35rem; /* about 62 characters a line */
  scroll-margin-top: 0.75rem; /* a little air under the fixed header when linked to */
}

/* terms.js may move focus to a clause it has just unfolded. A clause is not a control,
   so it takes the mark below instead of a focus ring. */
.terms__item:focus-visible {
  outline: none;
}

.terms__item + .terms__item {
  margin-top: var(--s-5);
}

.terms__title {
  display: flex;
}

.terms__num {
  flex: none;
  width: var(--terms-indent);
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.terms__text {
  margin-top: 0.3rem;
  padding-left: var(--terms-indent);
  color: var(--ink-2);
}

.terms__more {
  margin-top: var(--s-6);
}

/* The one fold on the page: a plain full-width control, not seventeen small ones. */
.terms__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  border-radius: var(--r-2);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font-weight: 600;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}

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

.terms__summary-hide,
.terms__more[open] .terms__summary-show {
  display: none;
}

.terms__more[open] .terms__summary-hide {
  display: inline;
}

.terms__summary-icon {
  transition: transform var(--dur-2) var(--ease-out);
}

.terms__more[open] .terms__summary-icon {
  transform: rotate(180deg);
}

.terms__more > .terms__group {
  margin-top: var(--s-6);
}

/* On a phone the summary already names this group, so its heading is kept for screen
   readers and the document outline only. */
@media (max-width: 47.99rem) {
  .terms__more .terms__group-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (hover: hover) {
  .terms__summary:hover {
    background: rgba(18, 21, 77, 0.05);
  }
}

/* From tablet width every clause is on the page, in two columns that read downwards. */
@media (min-width: 48rem) {
  .terms__points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--s-6);
    border-top: 0;
  }

  .terms__point {
    border-top: 1px solid var(--line-strong);
    border-bottom: 0;
  }

  .terms__list {
    columns: 2;
    column-gap: clamp(2rem, 5vw, 4.5rem);
  }

  .terms__item {
    break-inside: avoid;
  }

  .terms__more[open] > .terms__summary {
    display: none;
  }

  .terms__more {
    margin-top: var(--s-7);
  }

  .terms__more > .terms__group {
    margin-top: 0;
  }
}

.terms__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-7);
}

.terms__ask {
  color: var(--ink-2);
}

.terms__ask a {
  display: inline-block;
  padding-block: 0.6rem;
  font-weight: 600;
}

/* the button needs a script; without one the browser menu still prints the page */
html.no-js .terms__print {
  display: none;
}

.terms__imprint {
  display: none;
}

/* ------------------------------------------------------------------ a clause that was linked to */

/* A still cue that stays while the address points at the clause. */
.terms__item:target .terms__num {
  color: var(--blue);
}

/* The moving cue: a tint behind the clause that fades out by itself. terms.js adds
   .is-marked only when motion is welcome. Opacity only, so nothing is re-laid out. */
.terms__item::before {
  content: "";
  position: absolute;
  inset: -0.6rem -0.75rem;
  z-index: -1;
  border-radius: var(--r-2);
  background: var(--ice-2);
  opacity: 0;
  pointer-events: none;
}

.terms__item.is-marked::before {
  animation: terms-mark 2400ms var(--ease-in-out) both;
}

@keyframes terms-mark {
  0% {
    opacity: 0;
  }

  12%,
  55% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* The folded clauses arrive once, when the visitor opens the fold on a phone. */
@media (max-width: 47.99rem) {
  html.js .terms__more[open] > .terms__group {
    animation: terms-arrive var(--dur-3) var(--ease-out);
  }
}

@keyframes terms-arrive {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
}

/* ------------------------------------------------------------------ without a script */

/*
 * terms.js opens the fold on wide screens and before printing. Where the browser lets a
 * stylesheet reach the folded content, do the same without it, so a wide page or a printed
 * page shows all seventeen clauses even if the script never runs.
 */
@supports selector(::details-content) {
  @media (min-width: 48rem) {
    .terms__more::details-content {
      content-visibility: visible;
    }

    .terms__more > .terms__summary {
      display: none;
    }
  }

  @media print {
    .terms__more::details-content {
      content-visibility: visible;
    }

    .terms__more > .terms__summary {
      display: none;
    }
  }
}

/* ------------------------------------------------------------------ print */

@media print {
  .terms {
    padding-block: 0;
    background: none;
    color: #000;
  }

  .terms .lede,
  .terms__text,
  .terms__num {
    color: #000;
  }

  .terms__more[open] > .terms__summary,
  .terms__actions,
  .terms__point-link,
  .terms__item::before {
    display: none;
  }

  .terms__head {
    margin-bottom: 1rem;
  }

  .terms__points {
    display: block;
    border: 0;
  }

  .terms__point {
    padding-block: 0.15rem;
    border: 0;
  }

  .terms__body {
    margin-top: 1.25rem;
  }

  .terms__more {
    margin-top: 1.25rem;
  }

  .terms__more > .terms__group {
    margin-top: 0;
  }

  .terms__group-title {
    margin-bottom: 0.6rem;
    break-after: avoid;
  }

  .terms__list {
    columns: 2;
    column-gap: 2rem;
  }

  .terms__item {
    --terms-indent: 2rem;
    max-width: none;
    break-inside: avoid;
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .terms__item + .terms__item {
    margin-top: 0.7rem;
  }

  .terms__title {
    font-size: 0.9375rem;
  }

  .terms__text {
    margin-top: 0.1rem;
  }

  .terms__imprint {
    display: block;
    margin-top: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #000;
    font-style: normal;
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .terms__imprint-line {
    display: block;
  }

  /*
   * "Print these terms": terms.js puts .terms-printing on <html> and .terms-print-path on
   * this section and each of its ancestors. Everything off that path stays off the paper.
   */
  html.terms-printing body > :not(.terms-print-path),
  html.terms-printing .terms-print-path:not(.terms) > :not(.terms-print-path) {
    display: none !important;
  }
}

/* gentle mode (see base.css): the highlight on a clause is a fade, so it still plays */
.gentle-motion .terms__item.is-marked::before {
  animation-duration: 2400ms !important;
}

/* ========================================================================== */
/* css/sections/enquiry.css */
/* ========================================================================== */

/*
 * Closing scene, how it starts, the enquiry form, and the page footer.
 * The section is a night surface (.on-dark); the footer is the light page again.
 */

/* ------------------------------------------------------------------ closing scene */

.enquiry {
  padding-top: 0;
}

/* Fixed-ratio box, so the page does not move when the landscape is drawn into it. */
.enquiry__scene {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  /* a plain dusk sky until (or unless) the script draws the landscape */
  background: linear-gradient(#0f1a5c 0%, #3a2f96 50%, #8b4aa9 100%);
}

.enquiry__scene .scene {
  position: absolute;
  inset: 0;
}

.enquiry__close-text {
  padding-top: var(--s-6);
}

/* wider screens get a shallower band, so the closing line stays in the first view */
@media (min-width: 40rem) {
  .enquiry__scene {
    aspect-ratio: 2 / 1;
  }
}

@media (min-width: 62rem) {
  .enquiry__scene {
    aspect-ratio: 5 / 2;
  }

  .enquiry__close-text {
    padding-top: var(--s-7);
  }
}

.enquiry__tagline {
  margin-top: var(--s-3);
  font-size: var(--fs-lead);
  font-weight: 600;
  color: var(--text-on-dark-2);
}

/* ------------------------------------------------------------------ how it starts */

/* "How it starts" follows the form: what happens once the enquiry has been sent */
.enquiry__start {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-top: clamp(2.5rem, 2rem + 3vw, 4rem);
  border-top: 1px solid var(--line-on-dark);
}

/* A real sequence, so it is numbered: one line down the side joins the six steps. */
.enquiry__steps {
  counter-reset: enquiry-step;
  display: grid;
  gap: 0;
  max-width: 40rem;
  margin-top: var(--s-5);
}

.enquiry__step {
  counter-increment: enquiry-step;
  position: relative;
  padding: 0 0 var(--s-5) 3.25rem;
}

.enquiry__step::before {
  content: counter(enquiry-step);
  position: absolute;
  left: 0;
  top: -0.2rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.enquiry__step::after {
  content: "";
  position: absolute;
  left: calc(1.125rem - 0.5px);
  top: 2.3rem;
  bottom: 0.25rem;
  width: 1px;
  background: var(--line-on-dark);
}

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

.enquiry__step:last-child::after {
  content: none;
}

.enquiry__step p {
  max-width: 34rem;
  margin-top: var(--s-1);
  color: var(--text-on-dark-2);
}

.enquiry__step p strong {
  color: var(--text-on-dark);
  font-weight: 650;
}

/*
 * One-off entrance: the steps arrive in order the first time the list is seen. The start
 * state exists only while enquiry.js has put .is-waiting on the list, which it does only
 * when motion is welcome, so without scripts or with reduced motion nothing is ever hidden.
 */
.enquiry__steps.is-waiting .enquiry__step {
  opacity: 0;
  transform: translateY(0.75rem);
}

.enquiry__steps.is-arriving .enquiry__step {
  transition: opacity var(--dur-3) ease, transform var(--dur-4) var(--ease-out);
  transition-delay: calc(var(--enquiry-i, 0) * 90ms);
}

.enquiry__step:nth-child(2) { --enquiry-i: 1; }
.enquiry__step:nth-child(3) { --enquiry-i: 2; }
.enquiry__step:nth-child(4) { --enquiry-i: 3; }
.enquiry__step:nth-child(5) { --enquiry-i: 4; }
.enquiry__step:nth-child(6) { --enquiry-i: 5; }

.enquiry__step a,
.enquiry__start-note a {
  white-space: nowrap;
}

.enquiry__start-note {
  max-width: 40rem;
  margin-top: var(--s-5);
}

@media (min-width: 62rem) {
  .enquiry__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-6) var(--s-6);
    max-width: none;
  }

  .enquiry__step {
    padding: 3rem 0 0;
  }

  /* across the row the joining line runs from one number to the next */
  .enquiry__step::before {
    top: 0;
  }

  .enquiry__step::after {
    left: 2.75rem;
    right: calc(-1 * var(--s-6) + 0.5rem);
    top: 1.125rem;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .enquiry__step:nth-child(3n)::after {
    content: none;
  }
}

/* ------------------------------------------------------------------ the form */

.enquiry__grid {
  display: grid;
  gap: var(--s-7);
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 4rem);
}

.enquiry__promise {
  max-width: 34rem;
  margin-top: var(--s-3);
  color: var(--text-on-dark-2);
}

.enquiry__fields {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-5);
}

.enquiry__optional {
  font-weight: 400;
  color: var(--text-on-dark-2);
}

/* base.css colours hints and errors for the light page; these are their night versions */
.enquiry .field__hint {
  color: var(--text-on-dark-2);
}

.enquiry .field__error {
  display: flex;
  gap: 0.4em;
  align-items: baseline;
  color: #ffc2b8;
}

.enquiry .field__error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  background: #ffc2b8;
  color: var(--night);
  font-size: 0.85em;
  font-weight: 800;
  line-height: 1;
  transform: translateY(0.05em);
}

.enquiry .input[aria-invalid="true"] {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px #ffc2b8;
}

.enquiry .input:focus-visible,
.enquiry .select:focus-visible,
.enquiry .textarea:focus-visible {
  border-color: var(--lamp-deep);
  box-shadow: 0 0 0 3px var(--lamp);
}

/* a field with a problem keeps its red edge while it is being corrected */
.enquiry .input[aria-invalid="true"]:focus-visible {
  border-color: var(--bad);
  box-shadow: 0 0 0 1.5px var(--bad), 0 0 0 4.5px var(--lamp);
}

@media (min-width: 34rem) {
  .enquiry__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .enquiry__field--wide {
    grid-column: 1 / -1;
  }
}

/* The form is a writing tool that only works with scripts, so it appears once enquiry.js
   has started (.is-ready). Until then, and if the script fails, a plain note stands in. */
.enquiry:not(.is-ready) .enquiry__form {
  display: none;
}

.enquiry.is-ready .enquiry__plain {
  display: none;
}

.enquiry__plain {
  max-width: 34rem;
}

.enquiry__form {
  display: grid;
  gap: var(--s-6);
}

/* add-on services ticked earlier */
.enquiry__addons {
  margin-top: var(--s-6);
}

.enquiry__addon-list {
  margin-top: var(--s-2);
}

.enquiry__addon {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-block: var(--s-1);
  border-bottom: 1px solid var(--line-on-dark);
}

.enquiry__addon-name {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}

.enquiry__addon-price {
  display: block;
  font-size: var(--fs-small);
  color: var(--text-on-dark-2);
}

.enquiry__addon-remove {
  flex: none;
}

.enquiry__addons [data-addons-empty] {
  margin-top: var(--s-2);
}

/* the written message: a sheet of the light page, set on the night */
.enquiry__message {
  margin: var(--s-3) 0 0;
  padding: var(--s-4) var(--s-4) var(--s-5);
  border-radius: var(--r-2);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}

/* a line of the message that has just changed arrives again, so the eye finds it */
.enquiry__line.is-changed {
  animation: enquiry-line 700ms ease-out;
}

@keyframes enquiry-line {
  from { opacity: 0.15; }
  to { opacity: 1; }
}

/* Some actions exist only on some devices (Share, WhatsApp), so the row wraps: the rest
   pair up, and one left over takes the full width. */
.enquiry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.enquiry__actions > .btn {
  flex: 1 1 calc(50% - var(--s-3));
  min-width: 0;
}

/* the one lit action takes the full width */
.enquiry__actions > .btn--lamp {
  flex-basis: 100%;
}

.enquiry__status {
  margin-top: var(--s-4);
  padding-left: var(--s-3);
  border-left: 3px solid var(--lamp);
  max-width: 34rem;
}

@media (min-width: 62rem) {
  .enquiry__form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
}

/* beside the fields, the message stays in view while they are filled in, but only on a
   screen tall enough to show all of it together with its buttons */
@media (min-width: 62rem) and (min-height: 56rem) {
  .enquiry__send {
    position: sticky;
    top: calc(var(--head-h) + var(--s-5));
  }
}

/* ------------------------------------------------------------------ contact details */

.enquiry__contact {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-top: clamp(2.5rem, 2rem + 3vw, 4rem);
  border-top: 1px solid var(--line-on-dark);
  font-style: normal;
}

.enquiry__contact-list {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-4);
}

.enquiry__contact-list dt {
  font-size: var(--fs-small);
  color: var(--text-on-dark-2);
}

.enquiry__contact-list dd {
  max-width: 26rem;
}

.enquiry__contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--fs-lead);
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (min-width: 48rem) {
  .enquiry__contact-list {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: var(--s-7);
  }
}

/* ------------------------------------------------------------------ footer */

.enquiry-foot {
  padding-block: var(--s-7) var(--s-6);
  background: var(--paper);
  font-size: var(--fs-small);
}

.enquiry-foot__in {
  display: grid;
  gap: var(--s-6);
}

.enquiry-foot__logo {
  width: auto;
  height: 2rem;
}

.enquiry-foot__descriptor {
  margin-top: var(--s-3);
  font-weight: 600;
}

.enquiry-foot__brand p + p {
  margin-top: 0;
}

.enquiry-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.enquiry-foot__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--s-4);
  margin-top: var(--s-1);
}

.enquiry-foot__contact {
  font-style: normal;
}

.enquiry-foot__contact p {
  max-width: 22rem;
  margin-top: 0;
}

.enquiry-foot__base {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-6);
  color: var(--ink-2);
}

.enquiry-foot__base::before {
  content: "";
  border-top: 1px solid var(--line);
  margin-bottom: var(--s-4);
}

.enquiry-foot__base p + p {
  margin-top: 0;
}

/* The motion switch. core.js sets aria-checked and handles the press. */
.enquiry-foot__motion {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  justify-self: start;
  min-height: 2.75rem;
  margin-top: var(--s-2);
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 600;
}

.enquiry-foot__motion-track {
  position: relative;
  flex: none;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 0.75rem;
  background: var(--ink-3);
  transition: background-color var(--dur-2) ease;
}

.enquiry-foot__motion-knob {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--dur-2) var(--ease-out);
}

.enquiry-foot__motion[aria-checked="true"] .enquiry-foot__motion-track {
  background: var(--blue);
}

.enquiry-foot__motion[aria-checked="true"] .enquiry-foot__motion-knob {
  transform: translateX(1.25rem);
}

.enquiry-foot__motion-state {
  min-width: 1.6rem;
  font-weight: 400;
  color: var(--ink-2);
}

.enquiry-foot__motion-state::after {
  content: "Off";
}

.enquiry-foot__motion[aria-checked="true"] .enquiry-foot__motion-state::after {
  content: "On";
}

/* the switch needs scripts; without them the device setting already applies */
.no-js .enquiry-foot__motion {
  display: none;
}

@media (min-width: 48rem) {
  .enquiry-foot__in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--s-7);
  }

  .enquiry-foot__base {
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: var(--s-2) var(--s-6);
  }

  .enquiry-foot__base::before {
    grid-column: 1 / -1;
  }

  .enquiry-foot__motion {
    justify-self: end;
    margin-top: 0;
  }
}

/* ------------------------------------------------------------------ print */

/* Browsers leave backgrounds out of a print, so the night section is set dark-on-white:
   the steps, the written message and the contact details are what is worth keeping. */
@media print {
  .enquiry {
    padding-block: 1rem;
    background: none;
    color: #000;
  }

  .enquiry__scene,
  .enquiry__promise,
  .enquiry__fields,
  .enquiry__addons,
  .enquiry__actions,
  .enquiry__status,
  .enquiry__plain,
  .enquiry-foot__nav,
  .enquiry-foot__motion {
    display: none !important;
  }

  .enquiry.on-dark p,
  .enquiry.on-dark dt,
  .enquiry.on-dark strong,
  .enquiry.on-dark .muted,
  .enquiry.on-dark a:not(.btn) {
    color: #000;
  }

  .enquiry__step::before {
    box-shadow: inset 0 0 0 1px #000;
  }

  .enquiry__step::after {
    background: #000;
  }

  .enquiry__steps.is-waiting .enquiry__step {
    opacity: 1;
    transform: none;
  }

  .enquiry__form {
    display: block;
  }

  .enquiry__send {
    position: static;
  }

  .enquiry__message {
    border: 1px solid #000;
    break-inside: avoid;
  }

  .enquiry__grid {
    border-top-color: #000;
  }
}

/* gentle mode (see base.css): a changed line of the message still fades in */
.gentle-motion .enquiry__line.is-changed {
  animation-duration: 700ms !important;
}

/* the switch reads "Reduced" while the device's own setting is keeping things calm */
.enquiry-foot__motion[data-motion-mode="gentle"] .enquiry-foot__motion-state::after {
  content: "Reduced";
}

/* every action is the same height, whether or not its label wraps on a narrow phone */
.enquiry__actions > .btn {
  min-height: 3.5rem;
}

/* the buttons that say "Enquire" land here, with the form's heading just under the header */
#enquiry-form {
  scroll-margin-top: 1.25rem;
}

/* forced colours: the animations switch keeps a visible track, knob and state */
@media (forced-colors: active) {
  .enquiry-foot__motion-track {
    forced-color-adjust: none;
    border: 1px solid ButtonText;
    background: Canvas;
  }

  .enquiry-foot__motion-knob {
    forced-color-adjust: none;
    background: ButtonText;
  }

  .enquiry-foot__motion[aria-checked="true"] .enquiry-foot__motion-track {
    background: Highlight;
  }

  .enquiry-foot__motion[aria-checked="true"] .enquiry-foot__motion-knob {
    background: HighlightText;
  }
}
