/*
 * sitrus.place landing. Tokens mirror app/lib/core/theme (tokens.dart,
 * typography.dart, button_styles.dart); keep them in sync by hand.
 * Light only, like the app.
 */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette (SitrusColors). */
  --linen: #f5f0e5;
  --sand: #d6c9ae;
  --espresso: #35372f;
  --olive: #596548;
  --olive-dark: #48523a;
  --terracotta: #c87853;
  --citrus: #d7e35b;
  --white: #fff;

  /* Semantic. */
  --text: var(--espresso);
  --text-2: #6b6a5e;
  --text-2-on-subtle: #615f54;
  --bg-subtle: rgb(214 201 174 / 0.3);
  --border: var(--sand);
  --border-subtle: rgb(214 201 174 / 0.4);
  --map-casing: #e4dac6;
  --map-park: #dce3c8;
  --map-water: #cfe3e3;
  --user-location: #2f7cf6;

  /* SitrusShadows. */
  --shadow: 0 4px 16px rgb(53 55 47 / 0.08);
  --shadow-up: 0 -4px 16px rgb(53 55 47 / 0.08);
  --shadow-label: 0 3px 10px rgb(53 55 47 / 0.16);

  /* SitrusRadii. */
  --r-control: 12px;
  --r-pill: 14px;
  --r-card: 16px;
  --r-card-lg: 20px;
  --r-sheet: 24px;

  --gutter: 24px;
  --wrap: 1120px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
.idea-text {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

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

svg {
  display: block;
}

a {
  color: var(--olive);
  text-underline-offset: 0.18em;
}

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

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

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

.skip-link {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: var(--r-control);
  background: var(--white);
  color: var(--olive);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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

/* ------------------------------------------------------------------ */
/* Top bar: the map's top pill ("sitrus | Limassol") and the language  */
/* pill, floating over the map.                                        */

.topbar {
  position: absolute;
  z-index: 5;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.pill-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.wordmark {
  width: auto;
  height: 18px;
  color: var(--olive);
}

a.pill:hover {
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
}

/* ------------------------------------------------------------------ */
/* Hero: the map, and the intro sheet that rises over it.              */

.hero {
  position: relative;
}

.map {
  --cx: 50%;
  --cy: 54%;
  --r: 118px;
  position: relative;
  height: clamp(440px, 62vh, 560px);
  height: clamp(440px, 62svh, 560px);
  overflow: hidden;
  /* The drawing is 2800 x 900, so up to ~2400px wide "cover" scales it by
     height and the coast stays at the same place on every width. */
  background: var(--linen) url("/assets/map.svg") center bottom / cover
    no-repeat;
}

.intro {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  padding: 44px var(--gutter) 8px;
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  background: var(--linen);
  box-shadow: var(--shadow-up);
  /* Keep the shadow above the sheet only. */
  clip-path: inset(-32px 0 0 0);
}

/* Grab handle, as on the app's map sheet. */
.intro::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 40px;
  height: 5px;
  margin-left: -20px;
  border-radius: 3px;
  background: var(--sand);
}

.intro-inner {
  max-width: 560px;
  container-type: inline-size;
}

/* Sized to the sheet so "Найди своё место," stays on the first line,
   next to its flourish, as in the app. */
h1 {
  color: var(--olive);
  font-size: clamp(1.875rem, 1.35rem + 2.2vw, 3.25rem);
  font-size: clamp(1.75rem, 9.6cqi, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.keep {
  position: relative;
  padding-right: 0.95em;
  white-space: nowrap;
}

/* Hand-drawn Terracotta flourish after the first line of a heading. Out
   of the flow, so it never changes the line height. */
.flourish {
  position: absolute;
  top: -0.32em;
  right: 0.02em;
  width: 0.78em;
  height: 0.78em;
  color: var(--terracotta);
}

.lead {
  max-width: 34em;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* Store badges. Without JS or before launch they are "coming soon"     */
/* plates; /assets/store.js turns them into links.                     */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store {
  display: inline-flex;
  flex: 1 1 148px;
  max-width: 220px;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 14px 8px 12px;
  white-space: nowrap;
  border-radius: var(--r-control);
  background: var(--espresso);
  color: var(--white);
  text-decoration: none;
}

.store svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.store-name {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
}

a.store[href]:hover {
  background: #23251f;
}

.store--soon {
  border: 1.5px dashed var(--sand);
  background: transparent;
  color: var(--text);
}

.store--soon .store-kicker {
  color: var(--text-2);
}

.store--soon svg {
  opacity: 0.55;
}

/* ------------------------------------------------------------------ */
/* Map contents: markers are 0x0 boxes on the anchor point (the tail   */
/* tip of a pin, the center of a dot), offset from the user's dot.     */

.mk {
  position: absolute;
  left: calc(var(--cx) + var(--x, 0px));
  top: calc(var(--cy) + var(--y, 0px));
  width: 0;
  height: 0;
}

/* Pin sizes from PinTier: circle (photo + 2 x border), border, tail. */
.mk--l {
  --c: 64px;
  --b: 3.5px;
  --t: 9px;
  --badge: 18px;
}

.mk--m {
  --c: 42px;
  --b: 2.5px;
  --t: 6px;
  --badge: 14px;
}

.pin {
  position: absolute;
  bottom: 0;
  left: calc(var(--c) / -2);
  width: var(--c);
  height: calc(var(--c) + var(--t));
  transform-origin: 50% 100%;
}

/* Tail: a triangle under the circle in the ring color. */
.pin::before {
  content: "";
  position: absolute;
  top: calc(var(--c) - var(--b));
  left: 50%;
  border-top: calc(var(--t) + var(--b)) solid var(--ring, var(--white));
  border-right: calc(var(--t) * 0.8) solid transparent;
  border-left: calc(var(--t) * 0.8) solid transparent;
  transform: translateX(-50%);
}

.pin-photo {
  position: absolute;
  inset: 0 0 auto;
  height: var(--c);
  padding: var(--b);
  border-radius: 50%;
  background: var(--ring, var(--white));
  box-shadow: var(--shadow);
}

.pin-photo > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: var(--white);
}

.pin-photo svg {
  width: 44%;
  height: 44%;
}

.g-warm {
  --g1: #e8c8a6;
  --g2: var(--terracotta);
}

.g-park {
  --g1: var(--map-park);
  --g2: var(--olive);
}

.g-sea {
  --g1: var(--map-water);
  --g2: #6f8a6e;
}

.g-sand {
  --g1: var(--sand);
  --g2: #7d7663;
}

.pin--verified {
  --ring: var(--terracotta);
}

/* "Checked by Sitrus" badge on the photo's top-right edge. */
.pin-badge {
  position: absolute;
  top: calc(var(--c) / 2 - var(--c) / 2 * 0.7071 - var(--badge) / 2);
  left: calc(var(--c) / 2 + var(--c) / 2 * 0.7071 - var(--badge) / 2);
  width: var(--badge);
  height: var(--badge);
}

/* Selected: Citrus halo 5 and x1.15 around the anchor. */
.pin--selected {
  transform: scale(1.15);
}

.pin--selected .pin-photo {
  box-shadow: 0 0 0 5px var(--citrus), var(--shadow);
}

/* White plate next to a pin (PinLabel). */
.lbl {
  position: absolute;
  bottom: calc(var(--t) + var(--c) / 2);
  left: calc(var(--c) / 2 + 6px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 5px 10px;
  border-radius: var(--r-control);
  background: var(--white);
  box-shadow: var(--shadow-label);
  white-space: nowrap;
  transform: translateY(50%);
}

.lbl-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.lbl-hook {
  color: var(--olive);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.mk--m .lbl {
  min-height: 28px;
  padding: 6px 10px;
  border-radius: var(--r-pill);
}

.mk--m .lbl-name {
  font-size: 13px;
  line-height: 16px;
}

.mk--sel .lbl {
  bottom: calc((var(--t) + var(--c) / 2) * 1.15);
  left: calc(var(--c) / 2 * 1.15 + 12px);
}

/* Dots: Olive, Terracotta when checked by the team. */
.dot {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--olive);
  box-shadow: var(--shadow);
}

.dot--verified {
  background: var(--terracotta);
}

/* "You are here" and the dashed 15-minute radius. */
.me {
  position: absolute;
  top: calc(var(--cy) - 16px);
  left: calc(var(--cx) - 16px);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgb(47 124 246 / 0.18);
}

.me::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--user-location);
  box-shadow: var(--shadow);
}

.radius {
  position: absolute;
  top: calc(var(--cy) - var(--r));
  left: calc(var(--cx) - var(--r));
  width: calc(2 * var(--r));
  height: calc(2 * var(--r));
  border: 1.5px dashed var(--olive);
  border-radius: 50%;
}

.plate {
  position: absolute;
  top: calc(var(--cy) - var(--r) * 0.7071);
  left: calc(var(--cx) + var(--r) * 0.7071);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-label);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.district {
  position: absolute;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
}

/* Marker layout, phones: everything that must stay visible fits in */
/* +-165px around the user's dot (360px screens).                    */
.m1 {
  --x: -92px;
  --y: -82px;
  --i: 0;
}
.m2 {
  --x: -134px;
  --y: 172px;
  --i: 1;
}
.m3 {
  --x: -34px;
  --y: 116px;
  --i: 2;
}
.m4 {
  --x: 140px;
  --y: 146px;
  --i: 3;
}
.m5 {
  --x: -142px;
  --y: -6px;
  --i: 4;
}
.m6 {
  --x: 300px;
  --y: -150px;
  --i: 5;
}
.m7 {
  --x: -330px;
  --y: 120px;
  --i: 6;
}
.d1 {
  --x: 54px;
  --y: 58px;
  --i: 3;
}
.d2 {
  --x: -152px;
  --y: 98px;
  --i: 5;
}
.d3 {
  --x: 156px;
  --y: 46px;
  --i: 4;
}
.d4 {
  --x: 112px;
  --y: -150px;
  --i: 2;
}
.d5 {
  --x: -158px;
  --y: -128px;
  --i: 1;
}
.d6 {
  --x: 30px;
  --y: 176px;
  --i: 6;
}
.d7 {
  --x: 240px;
  --y: 40px;
  --i: 6;
}
.d8 {
  --x: -250px;
  --y: -40px;
  --i: 6;
}
.t1 {
  top: calc(var(--cy) - 178px);
  left: calc(var(--cx) - 20px);
}
.t2,
.t3 {
  display: none;
}

/* Labels go right of the pin unless the layout puts them on the left. */
.m4 .lbl {
  right: calc(var(--c) / 2 + 6px);
  left: auto;
}

/* The one orchestrated moment: pins drop onto the map on load. */
@media (prefers-reduced-motion: no-preference) {
  .map .mk {
    animation: pin-drop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards;
    animation-delay: calc(180ms + var(--i, 0) * 80ms);
  }

  .radius,
  .plate {
    animation: fade-in 0.6s ease-out backwards;
  }

  @keyframes pin-drop {
    from {
      opacity: 0;
      transform: translateY(-10px) scale(0.6);
    }
  }

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

/* ------------------------------------------------------------------ */
/* Sections.                                                          */

.section {
  padding-block: 56px;
}

.section--first {
  padding-top: 48px;
}

h2 {
  color: var(--olive);
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.625rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.005em;
}

h3 {
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.section-lead {
  max-width: 36em;
  margin-top: 16px;
  color: var(--text-2);
}

/* The idea. */
.idea-text {
  max-width: 21em;
  color: var(--text);
  font-size: clamp(1.625rem, 1.2rem + 1.9vw, 2.75rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.idea-note {
  max-width: 34em;
  margin-top: 20px;
  color: var(--text-2);
  font-size: 1.125rem;
}

/* Scenarios: the app's rating strip (white, Sand border, dividers). */
.scenarios {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--white);
}

.scenario {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
  align-items: start;
  padding: 18px 18px 18px 16px;
}

.scenario + .scenario {
  border-top: 1px solid var(--border-subtle);
}

.icon-circle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text);
}

.icon-circle svg,
.opinion-col svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scenario h3 {
  padding-top: 1px;
}

.scenario p {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.4;
}

/* Checked by Sitrus. */
.trust {
  display: grid;
  gap: 40px;
}

.legend {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.legend dt {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
}

.legend-mark {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
}

.legend-mark .mk {
  top: 51px;
  left: 28px;
}

.legend-mark .dot {
  position: static;
}

.legend dd {
  margin-top: -4px;
  padding-left: 72px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.opinion-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 16px;
  text-transform: uppercase;
}

.opinion-label svg {
  width: 14px;
  height: 14px;
}

.opinion-block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
  padding: 18px 8px;
  border-radius: var(--r-card);
  background: var(--bg-subtle);
}

.opinion-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.opinion-col span {
  color: var(--text-2-on-subtle);
  font-size: 12px;
  line-height: 16px;
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  width: 44px;
}

.scale i {
  height: 3px;
  border-radius: 2px;
  background: var(--sand);
}

.scale i.on {
  background: var(--olive);
}

.footnote {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 16px;
}

.opinion-note {
  margin-top: 20px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* How it works: three stops on a dashed route. */
.steps {
  position: relative;
  display: grid;
  gap: 32px;
  margin-top: 36px;
}

/* Route between the stops: from each marker down to the next one. */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 48px;
  bottom: -32px;
  left: 23px;
  border-left: 2px dashed var(--olive);
}

.step {
  position: relative;
  min-height: 48px;
  padding-left: 72px;
}

.step-num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--olive);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.step:last-child .step-num {
  box-shadow: 0 0 0 5px var(--citrus), var(--shadow);
}

.step h3 {
  padding-top: 11px;
  font-size: 1.1875rem;
}

.step p {
  margin-top: 6px;
  color: var(--text-2);
}

/* The end: the "done" screen of the onboarding. */
.done {
  text-align: center;
}

.done-art {
  width: min(322px, 82%);
  height: auto;
  margin: 0 auto 28px;
  color: var(--terracotta);
}

.done .section-lead {
  margin-inline: auto;
}

.done .stores {
  justify-content: center;
}

/* Footer. */
.footer {
  padding-block: 40px 48px;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: var(--olive);
}

.lockup .wordmark {
  height: 30px;
}

.lockup-slogan {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.375em;
  line-height: 16px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.footer-meta a {
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* 404: the empty state of the map sheet.                             */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 104px var(--gutter) 64px;
  text-align: center;
}

.empty .icon-circle {
  width: 48px;
  height: 48px;
  color: var(--terracotta);
}

.empty .icon-circle svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.75;
}

.empty h1 {
  margin-top: 16px;
  color: var(--text);
  font-size: 1.5rem;
}

.empty p {
  max-width: 26em;
  margin-top: 8px;
  color: var(--text-2);
}

.empty-en {
  margin-top: 40px;
}

.empty-en h2 {
  color: var(--text);
  font-size: 1.125rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 20px;
  padding: 8px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  background: var(--white);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: #f9f6ef;
}

.button:active {
  background: #f3eee3;
}

/* ------------------------------------------------------------------ */
/* Tablets and up.                                                    */

@media (min-width: 720px) {
  :root {
    --gutter: 40px;
  }

  .map {
    --r: 150px;
    height: 560px;
  }

  .m1 {
    --x: -150px;
    --y: -96px;
  }
  .m2 {
    --x: 130px;
    --y: -40px;
  }
  .m3 {
    --x: -40px;
    --y: 150px;
  }
  .m4 {
    --x: 220px;
    --y: 120px;
  }
  .m5 {
    --x: -250px;
    --y: 40px;
  }
  .d1 {
    --x: 70px;
    --y: 70px;
  }
  .d2 {
    --x: -190px;
    --y: 140px;
  }
  .d3 {
    --x: 196px;
    --y: 26px;
  }
  .d4 {
    --x: 150px;
    --y: -190px;
  }
  .d5 {
    --x: -230px;
    --y: -150px;
  }
  .t1 {
    top: calc(var(--cy) - 222px);
    left: calc(var(--cx) - 20px);
  }
  .t2 {
    display: block;
    top: calc(var(--cy) + 172px);
    left: calc(var(--cx) - 260px);
  }
  .t3 {
    display: block;
    top: calc(var(--cy) + 60px);
    left: calc(var(--cx) + 250px);
  }

  .m4 .lbl {
    right: auto;
    left: calc(var(--c) / 2 + 6px);
  }

  .section {
    padding-block: 80px;
  }

  .section--first {
    padding-top: 72px;
  }

  .trust {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .step:not(:last-child)::before {
    top: 23px;
    right: -32px;
    bottom: auto;
    left: 48px;
    border-top: 2px dashed var(--olive);
    border-left: 0;
  }

  .step {
    padding-top: 68px;
    padding-left: 0;
  }

  .step h3 {
    padding-top: 0;
  }

  .step p {
    max-width: 18em;
  }
}

/* ------------------------------------------------------------------ */
/* Desktop: the intro becomes a floating panel over the map, the map   */
/* centers on the free space to its right.                             */

@media (min-width: 1000px) {
  .topbar {
    top: 24px;
    left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
    right: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  }

  .map {
    --panel-left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
    --panel-right: calc(var(--panel-left) + min(540px, 44%));
    --cx: calc((var(--panel-right) + 100%) / 2);
    --cy: 52%;
    --r: 170px;
    height: clamp(640px, 88vh, 780px);
  }

  .intro {
    position: absolute;
    top: 50%;
    left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
    width: min(540px, 44%);
    margin: 0;
    padding: 44px 40px 40px;
    border-radius: var(--r-sheet);
    box-shadow: var(--shadow);
    transform: translateY(-44%);
    clip-path: none;
  }

  .intro::before {
    display: none;
  }

  .m1 {
    --x: -170px;
    --y: -110px;
  }
  .m2 {
    --x: 150px;
    --y: -50px;
  }
  .m3 {
    --x: -90px;
    --y: 160px;
  }
  .m4 {
    --x: 225px;
    --y: 100px;
  }
  .m5 {
    --x: -230px;
    --y: 60px;
  }

  .m2 .lbl,
  .m4 .lbl {
    right: calc(var(--c) / 2 + 6px);
    left: auto;
  }
  .m6 {
    --x: 120px;
    --y: -210px;
  }
  .m7 {
    --x: -200px;
    --y: -230px;
  }
  .d1 {
    --x: 80px;
    --y: 70px;
  }
  .d2 {
    --x: -200px;
    --y: 120px;
  }
  .d3 {
    --x: 250px;
    --y: 30px;
  }
  .d4 {
    --x: 230px;
    --y: -170px;
  }
  .d5 {
    --x: -250px;
    --y: -170px;
  }
  .d6 {
    --x: -150px;
    --y: -40px;
  }
  .d7 {
    --x: 310px;
    --y: -80px;
  }
  .d8 {
    --x: -280px;
    --y: -40px;
  }
  .t1 {
    top: calc(var(--cy) - 270px);
    left: calc(var(--cx) - 60px);
  }
  .t2 {
    top: calc(var(--cy) + 215px);
    left: calc(var(--cx) + 40px);
  }
  .t3 {
    top: calc(var(--cy) + 150px);
    left: calc(var(--cx) + 130px);
  }

  /* The page below rises over the map like the app's sheet. */
  #content {
    position: relative;
    z-index: 2;
    margin-top: -28px;
    border-radius: var(--r-sheet) var(--r-sheet) 0 0;
    background: var(--linen);
    box-shadow: var(--shadow-up);
  }

  .section {
    padding-block: 88px;
  }

  .scenarios {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }

  .scenario {
    grid-template-columns: 1fr;
    row-gap: 12px;
    padding: 22px 18px 24px;
  }

  .scenario + .scenario {
    border-top: 0;
    border-left: 1px solid var(--border-subtle);
  }

  .section--first {
    padding-top: 104px;
  }

  .opinion-block {
    padding: 24px 12px;
  }

  .opinion-col {
    gap: 10px;
  }

  .scale {
    gap: 3px;
    width: 60px;
  }
}

@media (min-width: 1440px) {
  .map {
    --r: 190px;
  }

  .m2 {
    --x: 190px;
    --y: -50px;
  }
  .m4 {
    --x: 280px;
    --y: 110px;
  }
  .m6 {
    --x: 150px;
    --y: -240px;
  }
  .d3 {
    --x: 300px;
    --y: 40px;
  }
  .d7 {
    --x: 380px;
    --y: -100px;
  }
}
