/*
 * Zuperjump website.
 *
 * Desktop (>= 1100 px) reproduces the Figma frame "Zuperjump 2024" (1440 x 9000,
 * ten 1440 x 900 sections). All desktop measures are written in design pixels
 * times --u, where --u is 1px at 1440 px and scales down below that, so the
 * layout keeps the design's proportions on smaller laptop screens.
 * Below 1100 px the sections stack into a single-column mobile layout.
 */

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Upright-VF.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Italic-VF.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --gold: #f0c876;
  --card: rgba(29, 29, 31, 0.8);
  --rule: #181818;
  --panel: #171717;
  --font: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* design px for fixed UI outside .page (vw includes the scrollbar; close enough there) */
  --uv: min(1px, 100vw / 1440);
}

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

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

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

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

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

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

.sc {
  font-variant-caps: small-caps;
}

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

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* ---------------------------------------------------------------- Menu */

.menu-toggle {
  position: fixed;
  z-index: 60;
  top: 12px;
  right: 12px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle__bar {
  position: absolute;
  left: 9px;
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle__bar:nth-child(1) {
  top: 13px;
}

.menu-toggle__bar:nth-child(2) {
  top: 25.5px;
}

.menu-toggle__bar:nth-child(3) {
  top: 38px;
}

.menu-open .menu-toggle__bar:nth-child(1) {
  transform: translateY(12.5px) rotate(45deg);
}

.menu-open .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle__bar:nth-child(3) {
  transform: translateY(-12.5px) rotate(-45deg);
}

.site-menu {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 96px 24px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.94);
}

.site-menu[hidden] {
  display: none;
}

.site-menu__list {
  text-align: center;
}

.site-menu__list a {
  display: inline-block;
  padding: 6px 12px;
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.3;
  font-variant-caps: small-caps;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.site-menu__list a:hover {
  color: var(--gold);
}

.menu-open {
  overflow: hidden;
}

/* ------------------------------------------------------ Shared blocks */

.page {
  container-type: inline-size;
  --u: min(1px, 100cqw / 1440);
}

.s {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.s__bg {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 96px 24px 88px;
}

.ln {
  display: inline;
}

.card {
  background: var(--card);
  border-radius: 20px;
}

.section-title {
  font-size: clamp(34px, 8vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.3em;
  text-align: center;
}

.watermark {
  display: none;
}

.social {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.social a {
  display: block;
  width: 32px;
  height: 32px;
  color: #fff;
}

.social a:hover {
  color: var(--gold);
}

.social svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.button {
  display: inline-block;
  padding: 10px 40px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #000;
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.button:hover {
  background: #f6d796;
}

/* ------------------------------------------- Mobile layout (< 1100px) */

/* Photo sections get a dark gradient behind the text on narrow screens. */
.zuperfast::after,
.decode::after,
.transform::after,
.see-fatigue::after,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.82) 78%);
  pointer-events: none;
}

.hero::after {
  background: radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 70%);
}

.see-fatigue::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.88) 60%);
}

.hero {
  min-height: 100svh;
}

.hero .stage {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding-top: 112px;
}

.hero .s__bg {
  object-position: 62% 50%;
}

.hero__logo {
  position: absolute;
  top: 18px;
  left: 20px;
  width: 150px;
}

.hero__title {
  font-size: clamp(32px, 8.4vw, 60px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-align: center;
}

.zuperfast,
.decode,
.transform {
  display: flex;
  min-height: min(100svh, 860px);
}

.zuperfast .stage,
.decode .stage,
.transform .stage {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
}

.zuperfast .s__bg {
  object-position: 22% 30%;
}

.zuperfast__title {
  font-size: clamp(40px, 10vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.22em;
}

.zuperfast__claim {
  margin-top: 0.6em;
  font-size: clamp(30px, 7.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
}

.zuperfast__ten {
  display: block;
  font-size: 1.33em;
}

.see-fatigue .s__bg {
  object-position: 46% 0%;
}

.see-fatigue__title {
  font-size: clamp(34px, 9vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.22em;
}

.see-fatigue__rule-v,
.see-fatigue__rule-h {
  display: none;
}

.see-fatigue__text {
  margin-top: clamp(220px, 62vw, 420px);
  max-width: 34em;
  font-size: 18px;
  line-height: 1.45;
}

.see-fatigue__text p + p {
  margin-top: 1em;
}

.explore .s__bg {
  object-position: 30% 100%;
}

.explore__cards {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.explore-card {
  padding: 24px 24px 28px;
}

.explore-card__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.explore-card__list {
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.3;
}

.explore-card__list li + li {
  margin-top: 14px;
}

.explore .social {
  margin-top: 48px;
}

.decode .s__bg {
  object-position: 34% 35%;
}

.decode__text {
  font-size: clamp(30px, 7.5vw, 46px);
  font-weight: 700;
  line-height: 1.2;
}

.decode__accent {
  display: block;
  font-size: 1.25em;
  letter-spacing: 0.25em;
  line-height: 1.1;
}

.transform .s__bg {
  object-position: 50% 40%;
}

.transform__badge {
  position: absolute;
  top: 88px;
  right: 24px;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.transform__text {
  font-size: clamp(22px, 5.2vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.transform__l3 {
  display: block;
  margin-top: 0.3em;
  font-size: 1.6em;
  letter-spacing: 0.12em;
  line-height: 1.1;
}

.transform2 .s__bg {
  object-position: 50% 0%;
}

.transform2 .stage {
  display: grid;
  gap: 44px;
}

.t2-block__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.t2-block p {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.4;
}

.t2-logo {
  width: 200px;
  justify-self: center;
}

.testimonials .s__bg {
  object-position: 50% 100%;
}

.quote {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "text text"
    "logo name";
  align-items: center;
  gap: 18px 16px;
  margin-top: 20px;
  padding: 24px 24px 22px 56px;
}

.testimonials__title + .quote {
  margin-top: 40px;
}

.quote blockquote {
  grid-area: text;
  font-size: 22px;
  font-style: italic;
  line-height: 1.25;
}

.quote blockquote::before {
  content: "\201C";
  position: absolute;
  left: 22px;
  top: 14px;
  font-size: 44px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.quote__logo {
  grid-area: logo;
  width: auto;
  height: 52px;
}

.quote figcaption {
  grid-area: name;
  justify-self: end;
  font-size: 16px;
  font-weight: 700;
}

.quote figcaption::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  margin-right: 14px;
  vertical-align: middle;
  background: currentColor;
}

.order .s__bg {
  object-position: 50% 50%;
}

.order-card {
  margin-top: 20px;
}

.order__title + .order-card {
  margin-top: 40px;
}

.order-card--text {
  padding: 32px 24px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.order-card--media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 28px 24px;
}

.order-card__device {
  width: 110px;
}

.order-card__tablet {
  width: 130px;
}

.order__cta {
  display: table;
  margin: 48px auto 0;
}

.contacts .stage {
  display: grid;
  gap: 36px;
  justify-items: center;
  text-align: center;
}

.contacts__people {
  display: grid;
  gap: 22px 28px;
  width: 100%;
  font-size: 16px;
  line-height: 1.35;
}

@media (min-width: 560px) {
  .contacts__people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
  }
}

.contacts__people .ln {
  display: block;
}

.contacts__people a {
  text-decoration: none;
}

.contacts__people a:hover {
  text-decoration: underline;
}

/* Footer text shown as images from assets/noindex/ (drawn by
   Frontend/tools/build_text_images.py). Each image runs 0.875em above the
   baseline and 0.3125em below it, with 0.125em spare on the left, so it sits
   where the same text would. The mail link swaps to an underlined image on
   hover, like the text links beside it. */
.txt-img {
  display: inline-block;
  width: auto;
  max-width: none;
  height: 1.1875em;
  margin-left: -0.125em;
  vertical-align: -0.3125em;
}

.txt-mail .txt-img + .txt-img,
.txt-mail:hover .txt-img {
  display: none;
}

.txt-mail:hover .txt-img + .txt-img {
  display: inline-block;
}

.contacts__logo {
  width: 240px;
}

.contacts__legal {
  display: grid;
  gap: 8px;
  width: 100%;
  padding-top: 16px;
  border-top: 2px solid var(--rule);
  font-size: 14px;
}

.contacts__legal a {
  text-decoration: none;
}

.contacts__legal a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- Modal */

.modal {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 56px 40px 44px;
  border: 0;
  background: var(--panel);
  color: #fff;
  font-size: 20px;
  line-height: 1.36;
}

.modal--wide {
  width: min(800px, calc(100vw - 32px));
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.modal__title {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
}

.modal p + p {
  margin-top: 1.36em;
}

.modal--wide .modal__title + p {
  margin-top: 1.36em;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font: 300 36px/1 var(--font);
  cursor: pointer;
}

/* ------------------------------------------------------- Legal page */

.legal-page {
  background: var(--panel);
}

.legal-header {
  position: relative;
  height: 96px;
}

.legal-header__logo {
  position: absolute;
  top: 18px;
  left: 20px;
  width: 150px;
}

.legal {
  max-width: 1248px;
  margin: 0 auto;
  padding: 24px 24px 96px;
  font-size: 18px;
  line-height: 1.5;
}

.legal__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}

.legal p,
.legal ul,
.legal h2,
.legal h3 {
  margin-top: 1.5em;
}

.legal h2,
.legal h3 {
  font-size: 1em;
  font-weight: 700;
  line-height: inherit;
}

.legal h3 {
  font-style: italic;
}

.legal .legal__h3-plain {
  font-style: normal;
}

/* A heading runs straight into its text, as in the design. */
.legal h2 + p,
.legal h2 + h3,
.legal h3 + p {
  margin-top: 0;
}

.legal a {
  overflow-wrap: anywhere;
}

.legal a:hover {
  color: var(--gold);
}

/* ------------------------------------------------- Desktop (>= 1100px) */

@media (min-width: 1100px) {
  .menu-toggle {
    top: calc(52 * var(--uv));
    right: calc(32 * var(--uv));
  }

  .s {
    height: calc(900 * var(--u));
    min-height: 0;
  }

  .s::after {
    display: none;
  }

  .s .s__bg {
    object-position: 50% 50%;
  }

  .stage,
  .hero .stage,
  .zuperfast .stage,
  .decode .stage,
  .transform .stage,
  .transform2 .stage,
  .contacts .stage {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    width: calc(1440 * var(--u));
    max-width: none;
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    text-align: left;
  }

  .stage > *,
  .testimonials__title + .quote,
  .order__title + .order-card {
    position: absolute;
    margin: 0;
  }

  .ln {
    display: block;
  }

  .card {
    border-radius: calc(20 * var(--u));
  }

  /* On screens wider than 1440px the stage stays centred; --gutter is the
     space beside it, so edge-anchored items can sit at the screen edge. */
  .stage {
    --gutter: calc((100cqw - 1440 * var(--u)) / 2);
  }

  .watermark {
    display: block;
    right: calc(22 * var(--u) - var(--gutter));
    top: calc(824 * var(--u));
    width: calc(181 * var(--u));
    opacity: 0.2;
  }

  /* Centred, widely spaced section titles. CSS adds letter-spacing after the
     last letter too, so the same amount of left padding keeps them centred. */
  .section-title {
    left: 0;
    top: calc(59.1 * var(--u));
    width: calc(1440 * var(--u));
    padding-left: 0.338em;
    font-size: calc(68 * var(--u));
    line-height: calc(80 * var(--u));
    letter-spacing: 0.338em;
  }

  .social {
    gap: calc(40 * var(--u));
  }

  .social a {
    width: calc(40 * var(--u));
    height: calc(40 * var(--u));
  }

  /* 1. Hero */
  .hero__logo {
    left: calc(55 * var(--u) - var(--gutter));
    top: calc(52 * var(--u));
    width: calc(272 * var(--u));
  }

  .hero__title {
    left: 0;
    top: calc(374.1 * var(--u));
    width: calc(1440 * var(--u));
    padding-left: 0.06em;
    font-size: calc(68 * var(--u));
    line-height: calc(80 * var(--u));
    letter-spacing: 0.06em;
  }

  /* 2. Zuperfast test */
  .zuperfast__text {
    left: calc(858 * var(--u));
    top: calc(126 * var(--u));
  }

  .zuperfast__title {
    font-size: calc(80 * var(--u));
    line-height: calc(80 * var(--u));
    letter-spacing: 0.212em;
  }

  .zuperfast__claim {
    margin-top: calc(80 * var(--u));
    font-size: calc(80 * var(--u));
    line-height: calc(80 * var(--u));
    letter-spacing: 0.062em;
  }

  .zuperfast__ten {
    font-size: 1em;
  }

  .zuperfast__sub {
    position: relative;
    top: calc(7.2 * var(--u));
    display: block;
    font-size: calc(60 * var(--u));
    letter-spacing: 0.062em;
  }

  /* 3. See nervous fatigue first */
  .see-fatigue__title {
    left: calc(80 * var(--u));
    top: calc(74.7 * var(--u));
    font-size: calc(80 * var(--u));
    line-height: calc(75 * var(--u));
    letter-spacing: 0.212em;
  }

  .see-fatigue__rule-v,
  .see-fatigue__rule-h {
    display: block;
    background: #fff;
  }

  .see-fatigue__rule-v {
    left: calc(181 * var(--u));
    top: calc(233 * var(--u));
    width: calc(2 * var(--u));
    height: calc(405 * var(--u));
  }

  .see-fatigue__rule-h {
    left: calc(181 * var(--u));
    top: calc(636.5 * var(--u));
    width: calc(249 * var(--u));
    height: calc(2 * var(--u));
  }

  .see-fatigue__text {
    left: calc(444 * var(--u));
    top: calc(600 * var(--u));
    width: calc(546 * var(--u));
    max-width: none;
    font-size: max(13px, calc(22 * var(--u)));
    line-height: calc(22 * var(--u));
  }

  .see-fatigue__text p + p {
    margin-top: calc(22 * var(--u));
  }

  /* 4. Explore */
  .explore__cards {
    left: calc(50 * var(--u));
    top: calc(261 * var(--u));
    display: flex;
    gap: calc(40 * var(--u));
  }

  .explore-card {
    width: calc(420 * var(--u));
    height: calc(378 * var(--u));
    padding: calc(20.6 * var(--u)) calc(30 * var(--u)) 0;
  }

  .explore-card__title {
    font-size: calc(40 * var(--u));
    line-height: calc(40 * var(--u));
    letter-spacing: 0;
    white-space: nowrap;
  }

  .explore-card__list {
    margin-top: calc(33.4 * var(--u));
    font-size: calc(28 * var(--u));
    line-height: calc(32.5 * var(--u));
  }

  .explore-card__list li + li {
    margin-top: calc(32.5 * var(--u));
  }

  .explore .social {
    left: calc(500 * var(--u));
    top: calc(780 * var(--u));
    margin: 0;
  }

  /* 5. Decode */
  .decode__text {
    left: calc(932 * var(--u));
    top: calc(153.9 * var(--u));
    font-size: calc(50 * var(--u));
    line-height: calc(67 * var(--u));
    letter-spacing: 0.01em;
  }

  .decode__accent {
    position: relative;
    top: calc(-4.68 * var(--u));
    font-size: calc(65 * var(--u));
    line-height: calc(67 * var(--u));
    letter-spacing: 0.211em;
  }

  /* 6. Transform */
  .transform__badge {
    left: calc(1143 * var(--u));
    top: calc(84 * var(--u));
    right: auto;
    width: calc(200 * var(--u));
    height: calc(200 * var(--u));
    font-size: calc(90 * var(--u));
    font-weight: 900;
  }

  .transform__text {
    left: 0;
    top: calc(600 * var(--u));
    width: calc(1440 * var(--u));
    font-size: calc(45 * var(--u));
    line-height: calc(80 * var(--u));
    letter-spacing: 0.018em;
    text-align: center;
  }

  .transform__l1 {
    position: relative;
    top: calc(2.5 * var(--u));
  }

  .transform__l3 {
    margin: 0;
    padding-left: 0.055em;
    font-size: calc(70 * var(--u));
    line-height: calc(56.3 * var(--u));
    letter-spacing: 0.055em;
  }

  /* 7. Why (blue) */
  .t2-block--paradigm,
  .t2-block--waiting {
    left: calc(150 * var(--u));
  }

  .t2-block--paradigm {
    top: calc(151 * var(--u));
    width: calc(440 * var(--u));
  }

  .t2-block--waiting {
    top: calc(531 * var(--u));
    width: calc(382 * var(--u));
  }

  .t2-block--finetune,
  .t2-block--discover {
    text-align: right;
  }

  .t2-block--finetune {
    left: calc(910 * var(--u));
    top: calc(152 * var(--u));
    width: calc(380 * var(--u));
  }

  .t2-block--discover {
    left: calc(945 * var(--u));
    top: calc(531 * var(--u));
    width: calc(345 * var(--u));
  }

  .t2-block__title {
    font-size: calc(28 * var(--u));
    line-height: calc(25 * var(--u));
    letter-spacing: 0.036em;
    white-space: nowrap;
  }

  .t2-block--paradigm .t2-block__title {
    white-space: normal;
  }

  /* Right-hand headings are wider than their text column; let them grow to the left. */
  .t2-block--finetune .t2-block__title,
  .t2-block--discover .t2-block__title {
    margin-left: calc(-120 * var(--u));
  }



  .t2-block p {
    margin-top: calc(29.3 * var(--u));
    font-size: max(13px, calc(22 * var(--u)));
    line-height: calc(25 * var(--u));
  }

  .t2-block--finetune p {
    margin-top: calc(31.3 * var(--u));
  }

  .t2-logo {
    left: calc(611 * var(--u));
    top: calc(415 * var(--u));
    width: calc(222 * var(--u));
  }

  /* 8. Testimonials */
  .quote {
    display: block;
    width: calc(500 * var(--u));
    height: calc(200 * var(--u));
    padding: 0;
  }

  .quote--1 {
    left: calc(128 * var(--u));
    top: calc(210 * var(--u));
  }

  .quote--2 {
    left: calc(750 * var(--u));
    top: calc(307 * var(--u));
  }

  .quote--3 {
    left: calc(198 * var(--u));
    top: calc(522 * var(--u));
  }

  .quote--4 {
    left: calc(821 * var(--u));
    top: calc(612 * var(--u));
  }

  .quote blockquote {
    position: absolute;
    left: calc(123 * var(--u));
    top: calc(26.1 * var(--u));
    width: calc(310 * var(--u));
    font-size: calc(28 * var(--u));
    line-height: calc(33 * var(--u));
  }

  .quote blockquote::before {
    left: calc(-53.75 * var(--u));
    top: calc(-0.75 * var(--u));
    font-size: calc(52 * var(--u));
    font-style: italic;
    font-weight: 900;
  }

  .quote__logo {
    position: absolute;
    width: auto;
    height: calc(70 * var(--u));
  }

  .quote--1 {
    --name-right: 49;
  }

  .quote--2,
  .quote--4 {
    --name-right: 39;
  }

  .quote--3 {
    --name-right: 50;
  }

  .quote--1 .quote__logo {
    left: calc(46 * var(--u));
    top: calc(110 * var(--u));
  }

  .quote--2 .quote__logo {
    left: calc(32 * var(--u));
    top: calc(110 * var(--u));
  }

  .quote--3 .quote__logo {
    left: calc(38 * var(--u));
    top: calc(110 * var(--u));
    height: calc(65 * var(--u));
  }

  .quote--4 .quote__logo {
    left: calc(36 * var(--u));
    top: calc(96 * var(--u));
  }

  .quote figcaption {
    position: absolute;
    right: calc(var(--name-right, 42) * var(--u));
    top: calc(149 * var(--u));
    font-size: calc(18 * var(--u));
    line-height: calc(24 * var(--u));
  }

  .quote figcaption::before {
    width: calc(22 * var(--u));
    height: calc(2 * var(--u));
    margin-right: calc(21 * var(--u));
  }

  /* 9. Order */
  .order__title {
    top: calc(108.9 * var(--u));
  }

  .order-card {
    width: calc(500 * var(--u));
    height: calc(200 * var(--u));
    padding: 0;
  }

  .order-card--text {
    left: calc(176 * var(--u));
    top: calc(350 * var(--u));
    display: grid;
    place-items: center;
    font-size: calc(35 * var(--u));
    line-height: calc(40 * var(--u));
  }

  .order-card--media {
    left: calc(813 * var(--u));
    top: calc(350 * var(--u));
    display: block;
  }

  .order-card--media img {
    position: absolute;
  }

  .order-card__device {
    left: calc(83 * var(--u));
    top: calc(38 * var(--u));
    width: calc(137 * var(--u));
  }

  .order-card__tablet {
    left: calc(262 * var(--u));
    top: calc(48 * var(--u));
    width: calc(151 * var(--u));
  }

  .order__cta {
    left: calc(540 * var(--u));
    top: calc(710 * var(--u));
    display: block;
    width: calc(360 * var(--u));
    height: calc(80 * var(--u));
    padding: 0;
    font-size: calc(50 * var(--u));
    line-height: calc(80 * var(--u));
    letter-spacing: 0.02em;
  }

  /* 10. Contacts */
  .contacts__title {
    left: calc(197 * var(--u));
    top: calc(265.9 * var(--u));
    width: auto;
    padding-left: 0;
    letter-spacing: 0.0735em;
    text-align: left;
  }

  /* Six people in two columns of three. The Figma frame had four in one
     column; six in one column would run into the line above the legal text. */
  .contacts__people {
    left: calc(197 * var(--u));
    top: calc(386.2 * var(--u));
    grid-template-columns: repeat(2, auto);
    gap: calc(21 * var(--u)) calc(60 * var(--u));
    width: auto;
    font-size: max(12px, calc(16 * var(--u)));
    line-height: calc(21 * var(--u));
    text-align: left;
  }

  .contacts__logo {
    left: calc(746 * var(--u));
    top: calc(380 * var(--u));
    width: calc(455 * var(--u));
  }

  .contacts .social {
    left: calc(500 * var(--u));
    top: calc(720 * var(--u));
  }

  .contacts__legal {
    left: calc(328 * var(--u));
    top: calc(800 * var(--u));
    display: flex;
    justify-content: space-between;
    width: calc(784 * var(--u));
    padding-top: calc(9 * var(--u));
    border-top-width: calc(2 * var(--u));
    font-size: max(11px, calc(12.5 * var(--u)));
    line-height: calc(20 * var(--u));
  }

  /* Dialogs: the Figma frames use the body text size of the legal page. */
  .modal {
    padding: 58px 40px 48px;
    font-size: 22px;
    line-height: 30px;
  }

  .modal p + p,
  .modal--wide .modal__title + p {
    margin-top: 30px;
  }

  .modal--wide {
    padding: 100px 100px 90px;
  }

  /* Legal page */
  .legal-header {
    height: calc(200 * var(--u));
  }

  .legal-header__logo {
    left: calc(55 * var(--u) - (100cqw - 1440 * var(--u)) / 2);
    top: calc(52 * var(--u));
    width: calc(272 * var(--u));
  }

  .legal {
    max-width: none;
    width: calc(1200 * var(--u));
    padding: 0 0 calc(160 * var(--u));
    font-size: max(15px, calc(22 * var(--u)));
    line-height: calc(30 * var(--u));
  }

  .legal__title {
    font-size: calc(40 * var(--u));
    line-height: calc(40 * var(--u));
  }

  .legal p,
  .legal ul,
  .legal h2,
  .legal h3 {
    margin-top: calc(30 * var(--u));
  }

  .legal h2 + p,
  .legal h2 + h3,
  .legal h3 + p {
    margin-top: 0;
  }

  .legal .legal__updated {
    margin-top: calc(29.5 * var(--u));
  }
}
