/* The company site: a printed city atlas (paper, blocks, pale yellow roads, water, parks) where
   the app icons are the markers, and the owner's side opens inside the Dot Owner icon (ink).
   DESIGN.md records the system. No framework, no build. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Register Hand";
  src: url("/fonts/register-hand.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-2: #f5f6f8;
  --ink: #0b0b0f;
  --ink-2: #17171d;
  --ink-3: #24242c;
  --text: #1c1c1c;
  --text-2: #555555;
  --text-3: #6b6b6b;
  --hairline: #e6e6e6;
  --block: #dcdfe6;
  --road: #ffe8a8;
  --road-text: #7a5200;
  --water: #b9d8ea;
  --water-text: #3f6a8a;
  --park: #cfe5c3;
  --label: #62666f;
  --lime: #7cff6b;
  --blue: #6ba6ff;
  --on-ink: #ffffff;
  --on-ink-2: rgb(255 255 255 / 0.74);
  --on-ink-3: rgb(255 255 255 / 0.58);
  --success: #15803d;
  --danger: #c5221f;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --hand: "Register Hand", "Segoe Print", "Bradley Hand", cursive;
  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1240px;
  --bar-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-h1: clamp(2.75rem, 1.55rem + 4.9vw, 5.75rem);
  --t-h2: clamp(2.125rem, 1.35rem + 3vw, 3.875rem);
  --t-h3: clamp(1.25rem, 1.08rem + 0.62vw, 1.625rem);
  --t-body: clamp(1.0625rem, 1.01rem + 0.2vw, 1.1875rem);
  --t-small: 0.9375rem;
  --t-map: 0.6875rem;
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 16px);
  scrollbar-color: #a3a7b1 transparent;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--road);
  color: var(--text);
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

[data-tone="ink"] :focus-visible,
.bar[data-tone="ink"] :focus-visible {
  outline-color: var(--lime);
}

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

h1,
h2,
h3 {
  font-weight: 800;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

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

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}

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

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------------ type */

.h1 {
  font-size: var(--t-h1);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.h2 {
  font-size: var(--t-h2);
  line-height: 1;
  letter-spacing: -0.037em;
}

.h3 {
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  line-height: 1.45;
  color: var(--text-2);
}

.intro {
  max-width: 34em;
  color: var(--text-2);
}

[data-tone="ink"] .intro,
[data-tone="ink"] .lede {
  color: var(--on-ink-2);
}

.fine {
  font-size: var(--t-small);
  color: var(--text-3);
}

/* Map lettering: the atlas's tracked capitals, used for grid references and map furniture. */
.map-type {
  font-size: var(--t-map);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 1.4em;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn--ink {
  background: var(--ink);
  color: var(--on-ink);
}

.btn--ink:hover {
  background: #26262e;
}

.btn--lime {
  background: var(--lime);
  color: var(--ink);
}

.btn--lime:hover {
  background: #a3ff95;
}

.btn--line {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.btn--line:hover {
  background: rgb(255 255 255 / 0.08);
}

.btn .icon {
  width: 1.3em;
  height: 1.3em;
}

.btn-dot {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--lime);
  transition: transform 240ms var(--ease-out);
}

.btn:hover .btn-dot {
  transform: scale(1.35);
}

/* ------------------------------------------------------------------ header */

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--bar-h);
  background: var(--paper);
  color: var(--text);
  transition:
    background-color 240ms var(--ease-out),
    color 240ms var(--ease-out);
}

.bar[data-tone="ink"] {
  background: var(--ink);
  color: var(--on-ink);
}

.bar-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.brand-tile {
  width: 30px;
  height: 30px;
}

.brand-tile rect {
  fill: var(--ink);
  transition: fill 240ms var(--ease-out);
}

.bar[data-tone="ink"] .brand-tile rect {
  fill: var(--ink-3);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.9875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out);
}

.nav-list a:hover {
  background: var(--paper-2);
}

.bar[data-tone="ink"] .nav-list a:hover {
  background: var(--ink-3);
}

.nav-list a[aria-current="page"] {
  background: var(--paper-2);
}

.key {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.key--member {
  background: var(--lime);
  box-shadow: 0 0 0 2.5px var(--ink);
}

.key--owner {
  background: var(--blue);
  box-shadow: 0 0 0 2.5px var(--ink);
}

.key--ink {
  border-radius: 2px;
  background: var(--ink);
}

.bar[data-tone="ink"] .key--ink {
  background: var(--on-ink);
}

.bar .btn {
  min-height: 44px;
  padding: 0 1.1em;
  font-size: 0.9875rem;
}

.bar[data-tone="ink"] .btn--ink {
  background: var(--lime);
  color: var(--ink);
}

.menu-btn {
  display: none;
}

@media (max-width: 899px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: var(--paper-2);
    color: inherit;
    cursor: pointer;
  }

  .bar[data-tone="ink"] .menu-btn {
    background: var(--ink-3);
  }

  .menu-btn svg {
    width: 20px;
    height: 20px;
  }

  .nav-list {
    position: fixed;
    inset: calc(var(--bar-h) + 8px) 12px auto auto;
    width: min(320px, calc(100vw - 24px));
    margin: 0;
    padding: 10px;
    border: 0;
    border-radius: 20px;
    background: var(--ink);
    color: var(--on-ink);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list:not(:popover-open) {
    display: none;
  }

  .nav-list a {
    min-height: 52px;
    font-size: 1.0625rem;
  }

  .nav-list a:hover,
  .nav-list a[aria-current="page"] {
    background: var(--ink-3);
  }

  .nav-list .key--ink {
    background: var(--on-ink);
  }

  .bar-in {
    gap: 8px;
  }

  .bar .btn span {
    display: none;
  }

  .bar .btn {
    width: 44px;
    padding: 0;
  }
}

@media (min-width: 900px) {
  .nav-list[popover] {
    position: static;
    display: flex;
    inset: auto;
    width: auto;
    margin: 0 8px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    overflow: visible;
  }
}

/* ------------------------------------------------------------------ hero: the atlas sheet */

.hero {
  position: relative;
}

.stage {
  position: relative;
  height: calc(100svh - var(--bar-h));
  min-height: 600px;
  max-height: 1100px;
  overflow: hidden;
  background: var(--paper);
}

.map-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
  --fx: 0.686;
  --fy: 0.546;
  --sx: 0.7;
  --sy: 0.54;
  --zoom: 1;
  --cw: calc(max(100cqw, 160cqh) * var(--zoom));
}

.city {
  position: absolute;
  width: var(--cw);
  aspect-ratio: 1600 / 1000;
  left: clamp(100cqw - var(--cw), var(--sx) * 100cqw - var(--fx) * var(--cw), 0px);
  top: clamp(100cqh - var(--cw) / 1.6, var(--sy) * 100cqh - var(--fy) * var(--cw) / 1.6, 0px);
}

.city > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: calc(var(--fx) * 100%) calc(var(--fy) * 100%);
}

.city-ground {
  animation: print 900ms var(--ease-out) backwards;
}

.city-tints {
  animation: print 1200ms var(--ease-out) backwards;
}

@keyframes print {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
}

.city-marks {
  overflow: visible;
}

.city-marks text {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  fill: var(--label);
}

.city-marks .road-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  fill: var(--road-text);
}

.city-marks .water-label {
  font-size: 10px;
  fill: var(--water-text);
}

.gym-tile {
  fill: var(--ink);
}

.gym-dot {
  fill: var(--lime);
}

.owner-dot {
  fill: var(--blue);
}

.pin {
  transform-box: fill-box;
  transform-origin: center;
}

.city-marks .station-label {
  font-size: 9px;
  letter-spacing: 0.16em;
}

@keyframes pin {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

.ping {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.ping--owner {
  stroke: var(--blue);
  stroke-width: 3;
}

.member-ring {
  fill: var(--ink);
}

.member-core {
  fill: var(--lime);
}

.callout {
  animation: pin 600ms var(--ease-out) 1100ms backwards;
  transform-box: fill-box;
  transform-origin: 0% 100%;
}

.callout-card {
  fill: var(--ink);
}

.city-marks .callout-name {
  font-size: 12px;
  letter-spacing: -0.01em;
  font-weight: 700;
  fill: var(--on-ink);
}

.city-marks .callout-sample {
  font-size: 8px;
  letter-spacing: 0.16em;
  fill: var(--ink);
}

.callout-sample-bg {
  fill: var(--road);
}

.city-marks .callout-count {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.045em;
  fill: var(--on-ink);
}

.city-marks .callout-unit {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 600;
  fill: var(--on-ink-2);
}

.city-marks .callout-chip {
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 700;
  fill: var(--lime);
}

/* The sheet's lettered frame: columns A to H along the top, rows 1 to 6 down the side. */
.frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.frame-cols,
.frame-rows {
  position: absolute;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.frame-cols {
  top: 0;
  left: 28px;
  right: 0;
  height: 22px;
  background: var(--paper);
}

.frame-rows {
  top: 22px;
  left: 0;
  bottom: 0;
  width: 28px;
  flex-direction: column;
  background: var(--paper);
}

.frame-cols li,
.frame-rows li {
  flex: 1;
  display: grid;
  place-items: center;
}

.frame-cols li + li {
  box-shadow: inset 1px 0 0 var(--hairline);
}

.frame-rows li + li {
  box-shadow: inset 0 1px 0 var(--hairline);
}

.cartouche {
  position: absolute;
  top: 22px;
  left: 28px;
  z-index: 2;
  width: min(640px, 48vw);
  padding: clamp(28px, 3vw, 44px) clamp(28px, 3vw, 44px) 22px;
  background: var(--paper);
}

.cartouche .h1 {
  max-width: 7.2em;
  font-size: min(var(--t-h1), 11svh);
}

.cartouche .lede {
  margin-top: 22px;
  max-width: 27em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 28px;
}

.actions .alt {
  font-size: var(--t-small);
  color: var(--text-2);
}

.actions .alt a {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* The legend is also the page's index: each key names where its section sits on the sheet. */
.map-key {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.map-key ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-key a,
.map-key .key-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
}

.map-key a:hover {
  color: var(--text);
}

.map-key svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.map-key .ref {
  margin-left: auto;
  padding-left: 8px;
  white-space: nowrap;
}

.cartouche-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 16px;
}

.scale-bar {
  display: inline-flex;
  width: 72px;
  height: 6px;
}

.scale-bar i {
  flex: 1;
  background: var(--ink);
}

.scale-bar i:nth-child(even) {
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.cartouche-foot .publisher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: none;
  color: var(--text);
}

.cartouche-foot .publisher .brand-tile {
  width: 18px;
  height: 18px;
}

.north-mark {
  width: 12px;
  height: 15px;
  margin-left: auto;
}

@media (max-height: 740px) and (min-width: 900px) {
  .cartouche-foot {
    display: none;
  }
}

/* The owner's icon opening over the whole sheet at the end of the zoom. */
.icon-fill {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--ink);
  clip-path: inset(50%);
  pointer-events: none;
  visibility: hidden;
}

.icon-dot {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  border-radius: 50%;
  background: var(--blue);
  pointer-events: none;
  visibility: hidden;
}

.zooming .hero {
  height: calc(100svh - var(--bar-h) + 110svh);
}

.zooming .stage {
  position: sticky;
  top: var(--bar-h);
}

.zooming .city > *,
.zooming .cartouche,
.zooming .frame {
  will-change: transform, opacity;
}

@media (max-width: 899px) {
  .stage {
    display: flex;
    flex-direction: column;
    min-height: 640px;
    max-height: none;
  }

  .stage .map-panel {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    min-height: 300px;
    --sx: 0.5;
    --sy: 0.5;
    --zoom: 1.5;
  }

  .frame-cols {
    left: 0;
  }

  .frame-rows {
    display: none;
  }

  .cartouche {
    position: relative;
    inset: auto;
    width: auto;
    padding: 22px var(--gutter) 18px;
  }

  .cartouche .h1 {
    font-size: var(--t-h1);
  }

  .cartouche .lede {
    margin-top: 14px;
  }

  .actions {
    margin-top: 20px;
  }

  .actions .btn {
    width: 100%;
  }

  .map-key,
  .cartouche-foot .publisher,
  .cartouche-foot .scale-bar,
  .north-mark {
    display: none;
  }

  .cartouche-foot {
    margin-top: 14px;
  }
}

@media (max-width: 899px) and (max-height: 760px) {
  .cartouche .lede {
    font-size: 1.0625rem;
  }
}

/* ------------------------------------------------------------------ sections */

.section {
  position: relative;
  padding-block: clamp(88px, 12vw, 168px);
}

[data-tone="ink"] {
  background: var(--ink);
  color: var(--on-ink);
}

.section-head {
  display: grid;
  gap: 24px;
  max-width: 44rem;
}

.grid-ref {
  position: absolute;
  top: clamp(88px, 12vw, 168px);
  left: 0;
  width: 28px;
  display: grid;
  place-items: center;
  padding-block: 10px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

[data-tone="ink"] .grid-ref {
  color: var(--on-ink-3);
}

@media (max-width: 1099px) {
  .grid-ref {
    display: none;
  }
}

/* ------------------------------------------------------------------ inside the owner's icon */

.inside {
  padding-top: clamp(96px, 14vw, 200px);
}

.inside-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.inside-copy .section-head {
  margin-bottom: clamp(48px, 8vh, 96px);
}

.stops {
  margin: 0;
  padding: 0 0 16vh;
  list-style: none;
}

.stop {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 78vh;
  padding-block: 24px;
  transition: opacity 400ms var(--ease-out);
}

.stop p {
  max-width: 30em;
  color: var(--on-ink-2);
}

.stop .h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--on-ink-3);
  vertical-align: 0.14em;
  transition: background-color 300ms var(--ease-out);
}

.stop.is-active .h3::before {
  background: var(--blue);
}

.stops-live .stop .h3 {
  color: var(--on-ink-2);
  transition: color 300ms var(--ease-out);
}

.stops-live .stop p {
  color: var(--on-ink-3);
  transition: color 300ms var(--ease-out);
}

.stops-live .stop.is-active .h3 {
  color: var(--on-ink);
}

.stops-live .stop.is-active p {
  color: var(--on-ink-2);
}

.stop:last-child {
  min-height: 70vh;
}

.inside-device {
  position: sticky;
  top: calc(var(--bar-h) + max(16px, (100svh - var(--bar-h) - 70.5em) / 2));
  display: grid;
  justify-items: center;
  font-size: min(clamp(9px, 0.34vw + 5.6px, 11px), calc((100svh - var(--bar-h) - 40px) / 70.5));
}

.device {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.device figcaption {
  font-size: 0.8125rem;
  color: var(--on-ink-3);
}

.device--paper figcaption {
  color: var(--text-3);
}

@media (max-width: 899px) {
  .inside-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .inside-copy {
    display: contents;
  }

  .inside-copy .section-head {
    order: 1;
    margin-bottom: 0;
  }

  .inside-device {
    order: 2;
    position: relative;
    top: auto;
    font-size: min(8.4px, 2.35vw);
  }

  .stops {
    order: 3;
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 8px;
    padding-bottom: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

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

  .stop,
  .stop:last-child {
    flex: 0 0 min(82%, 340px);
    min-height: 0;
    align-content: start;
    gap: 10px;
    padding: 20px;
    border-radius: 20px;
    background: var(--ink-2);
    scroll-snap-align: start;
  }

  .stops-live .stop.is-active {
    background: var(--ink-3);
  }

  .stop p {
    font-size: 1rem;
  }

  .inside .pager {
    order: 4;
  }
}

.pager {
  display: none;
}

@media (max-width: 899px) {
  .pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .pager li {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--on-ink-3);
    transition:
      width 300ms var(--ease-out),
      background-color 300ms var(--ease-out);
  }

  .pager li.is-active {
    width: 22px;
    border-radius: 4px;
    background: var(--blue);
  }
}

/* ------------------------------------------------------------------ the phone and the app inside it
   Every size inside the phone is in em: the phone's font size scales the whole device. At 10px the
   screen is 300 by 650, the app's 393-point screen at 0.763, so an app point is 0.0763em. */

.phone {
  position: relative;
  width: 31.8em;
  height: 66.8em;
  padding: 0.9em;
  border-radius: 5.4em;
  background: #1b1b21;
  flex: none;
  user-select: none;
}

.device--paper .phone {
  background: var(--ink);
}

.phone::before {
  content: "";
  position: absolute;
  top: 1.9em;
  left: 50%;
  z-index: 5;
  width: 9em;
  height: 2.5em;
  margin-left: -4.5em;
  border-radius: 2em;
  background: #000;
}

.screen-box {
  position: relative;
  width: 30em;
  height: 65em;
  overflow: hidden;
  border-radius: 4.5em;
  background: #fff;
  color: var(--text);
  font-size: 1em;
  line-height: 1.3;
  letter-spacing: 0;
}

.scr {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 4.9em 1.3em 0;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.6em);
  transition:
    opacity 360ms var(--ease-out),
    transform 480ms var(--ease-out),
    visibility 0s linear 480ms;
}

.scr.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 420ms var(--ease-out) 80ms,
    transform 560ms var(--ease-out) 80ms,
    visibility 0s;
}

.status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.4em;
  padding: 0.5em 2.9em 0 3.3em;
  font-size: 1.3em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.status .status-icons {
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.status .batt {
  width: 1.9em;
  height: 0.9em;
  border-radius: 0.28em;
  background: currentColor;
}

.status .sig {
  width: 1.1em;
  height: 0.8em;
  background: currentColor;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.status--light {
  color: #fff;
}

.a-row {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.a-top {
  justify-content: flex-end;
  min-height: 3.3em;
}

.a-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  height: 2.6em;
  padding: 0 0.9em;
  border-radius: 2em;
  background: #fff;
  box-shadow: 0 0.2em 0.9em rgb(0 0 0 / 0.1);
  font-size: 0.99em;
  font-weight: 600;
}

.a-pill svg {
  width: 1em;
  height: 1em;
}

.a-round {
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.2em 0.9em rgb(0 0 0 / 0.1);
}

.a-round svg {
  width: 1.2em;
  height: 1.2em;
}

.a-title {
  margin-top: 0.4em;
  font-size: 2.29em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.a-card {
  border-radius: 1.2em;
  background: #fff;
  box-shadow: inset 0 0 0 0.1em var(--hairline);
}

.a-status {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-top: 1em;
  padding: 1em 1.1em;
}

.a-status .dot {
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: var(--success);
}

.a-status b {
  display: block;
  font-size: 1.14em;
  font-weight: 600;
}

.a-status span {
  font-size: 0.92em;
  color: var(--text-3);
}

.a-status svg {
  width: 1.1em;
  height: 1.1em;
  margin-left: auto;
  color: var(--text-3);
}

.a-day {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.3em;
  font-size: 1.14em;
  font-weight: 700;
}

.a-day small {
  font-size: 0.8em;
  font-weight: 500;
  color: var(--text-3);
}

.a-day svg {
  width: 1em;
  height: 1em;
}

.a-day .end {
  margin-left: auto;
}

.a-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1em;
  margin-top: 0.6em;
}

.a-num {
  font-size: 4.27em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.a-chip {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.25em 0.55em;
  border-radius: 0.5em;
  background: #e8fbf3;
  color: var(--success);
  font-size: 0.84em;
  font-weight: 700;
  vertical-align: 1.4em;
}

.a-cap {
  font-size: 0.92em;
  color: var(--text-3);
}

.a-quiet {
  display: grid;
  justify-items: end;
  gap: 0.25em;
  padding-top: 0.5em;
  font-size: 0.92em;
  color: var(--text-2);
  text-align: right;
}

.a-quiet b {
  color: var(--text);
  font-weight: 700;
}

.a-lens {
  display: flex;
  gap: 1.3em;
  margin-top: 1.3em;
  border-bottom: 0.1em solid var(--hairline);
  font-size: 1.14em;
  font-weight: 600;
  color: var(--text-3);
}

.a-lens span {
  padding-bottom: 0.45em;
}

.a-lens .on {
  color: var(--text);
  box-shadow: inset 0 -0.18em 0 var(--text);
}

.a-seg {
  display: flex;
  margin-top: 0.9em;
  padding: 0.25em;
  border-radius: 0.8em;
  background: #f2f3f5;
  font-size: 0.92em;
  font-weight: 600;
  color: var(--text-2);
}

.a-seg span {
  flex: 1;
  padding: 0.45em 0.2em;
  border-radius: 0.6em;
  text-align: center;
}

.a-seg .on {
  background: #fff;
  color: var(--text);
  box-shadow: 0 0.1em 0.3em rgb(0 0 0 / 0.1);
}

.a-list {
  position: relative;
  margin: 0.4em 0 0;
  padding: 0;
  list-style: none;
}

.a-li {
  display: flex;
  align-items: center;
  gap: 0.9em;
  min-height: 4.3em;
  border-bottom: 0.08em solid #ececec;
}

.a-av {
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: #f2f3f5;
  font-size: 0.99em;
  font-weight: 700;
  color: var(--text-2);
  flex: none;
}

.a-who {
  display: grid;
  gap: 0.1em;
  min-width: 0;
}

.a-who b {
  font-size: 1.14em;
  font-weight: 600;
  white-space: nowrap;
}

.a-who span {
  font-size: 0.92em;
  color: var(--text-3);
}

.a-side {
  margin-left: auto;
  font-size: 0.92em;
  color: var(--text-3);
  text-align: right;
}

.a-tag {
  display: inline-block;
  font-style: normal;
  margin-left: 0.4em;
  padding: 0.12em 0.45em;
  border-radius: 0.35em;
  background: #f2f3f5;
  font-size: 0.66em;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-2);
  vertical-align: 0.15em;
  text-transform: uppercase;
}

.a-tag--dues {
  background: #ffe8a8;
  color: #7a5200;
}

.a-tag--plan {
  background: #ffe8a8;
  color: #7a5200;
}

.a-li.is-new {
  animation: row-in 700ms var(--ease-out) both;
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(-1.2em);
    background: #e8fbf3;
  }
  60% {
    background: #e8fbf3;
  }
}

.a-li .queued {
  color: #7a5200;
  font-weight: 700;
}

.a-sample {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7.2em;
  z-index: 3;
  padding: 0.8em 1em;
  background: var(--road);
  color: #7a5200;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.a-tabs {
  position: absolute;
  left: 1.3em;
  right: 1.3em;
  bottom: 1.5em;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  height: 5.2em;
  padding: 0.5em;
  border-radius: 3em;
  background: #fff;
  box-shadow: 0 0.3em 1.4em rgb(0 0 0 / 0.12);
}

.a-tab {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.2em;
  flex: 1;
  border-radius: 2.4em;
  font-size: 0.74em;
  font-weight: 600;
  color: var(--text-2);
}

.a-tab svg {
  width: 2.1em;
  height: 2.1em;
}

.a-tab.on {
  background: #f2f3f5;
  color: var(--text);
}

.a-toast {
  position: absolute;
  left: 1.3em;
  right: 1.3em;
  bottom: 10.6em;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 1em 1.1em;
  border-radius: 1.1em;
  background: rgb(17 17 17 / 0.92);
  color: #fff;
  font-size: 0.99em;
  font-weight: 600;
  opacity: 0;
  transform: translateY(1em);
  transition:
    opacity 300ms var(--ease-out),
    transform 400ms var(--ease-out);
}

.a-toast.is-on {
  opacity: 1;
  transform: none;
}

.a-toast svg {
  width: 1.3em;
  height: 1.3em;
  color: var(--lime);
}

/* Scan and the verdict */

.scr--scan {
  padding: 0;
  background: var(--ink);
  color: #fff;
}

.scan-head {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 5.4em 1.6em 0;
  font-size: 1.14em;
  font-weight: 700;
}

.scan-head svg {
  width: 1.2em;
  height: 1.2em;
}

.scan-view {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  transition: background-color 400ms var(--ease-out);
}

.scan-phone {
  position: relative;
  display: grid;
  place-items: center;
  width: 15em;
  height: 15em;
  border-radius: 1.2em;
  background: #fff;
  transform: rotate(-6deg);
  transition:
    transform 600ms var(--ease-out),
    opacity 300ms var(--ease-out);
}

.scan-phone svg {
  width: 12em;
  height: 12em;
}

.scan-frame {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 19em;
  height: 19em;
  margin: -9.5em 0 0 -9.5em;
  pointer-events: none;
}

.scan-frame i {
  position: absolute;
  width: 3em;
  height: 3em;
  border: 0.3em solid #fff;
  border-radius: 0.6em;
}

.scan-frame i:nth-child(1) {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.scan-frame i:nth-child(2) {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}

.scan-frame i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
}

.scan-frame i:nth-child(4) {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
}

.scan-line {
  position: absolute;
  left: 1.5em;
  right: 1.5em;
  top: 1.5em;
  height: 0.3em;
  border-radius: 1em;
  background: var(--lime);
  opacity: 0;
}

.is-scanning .scan-line {
  opacity: 1;
  animation: sweep 1100ms var(--ease-in-out) infinite alternate;
}

@keyframes sweep {
  to {
    transform: translateY(15.7em);
  }
}

.scan-checking {
  position: absolute;
  left: 50%;
  bottom: 13.5em;
  padding: 0.6em 1.1em;
  border-radius: 2em;
  background: rgb(255 255 255 / 0.16);
  font-size: 0.99em;
  font-weight: 600;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}

.is-checking .scan-checking {
  opacity: 1;
}

.scan-actions {
  display: flex;
  justify-content: center;
  gap: 0.8em;
  padding: 0 1.3em 2.6em;
}

.scan-actions span {
  padding: 0.8em 1.2em;
  border-radius: 2em;
  background: rgb(255 255 255 / 0.14);
  font-size: 0.99em;
  font-weight: 600;
}

.verdict {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 0.7em;
  padding: 1.8em 1.6em 2.4em;
  border-radius: 2.2em 2.2em 0 0;
  background: #fff;
  color: var(--text);
  transform: translateY(105%);
  transition: transform 520ms var(--ease-out);
}

.is-verdict .verdict {
  transform: none;
}

.verdict-word {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: 2em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.verdict-word svg {
  width: 1.05em;
  height: 1.05em;
}

.verdict[data-tone="pass"] .verdict-word {
  color: var(--success);
}

.verdict[data-tone="fail"] .verdict-word {
  color: var(--danger);
}

.verdict-who {
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.verdict-who b {
  display: block;
  font-size: 1.14em;
  font-weight: 600;
}

.verdict-big {
  font-size: 4.27em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.verdict-line {
  font-size: 0.99em;
  color: var(--text-2);
}

.verdict-btn {
  display: grid;
  place-items: center;
  height: 3.8em;
  margin-top: 0.4em;
  border-radius: 2em;
  background: var(--ink);
  color: #fff;
  font-size: 1.05em;
  font-weight: 600;
}

.verdict [hidden] {
  display: none;
}

.is-verdict.tone-pass .scan-view {
  background: #6ee7b7;
}

.is-verdict.tone-fail .scan-view {
  background: #d93025;
}

.is-verdict .scan-phone {
  opacity: 0;
  transform: rotate(-6deg) scale(0.9);
}

/* Dues */

.dues-total {
  margin-top: 0.4em;
  font-size: 3.6em;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.dues-buckets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6em;
  margin-top: 1.1em;
  font-size: 0.84em;
  color: var(--text-3);
}

.dues-buckets b {
  display: block;
  font-size: 1.1em;
  color: var(--text);
}

.a-eyebrow {
  margin-top: 1.6em;
  font-size: 0.84em;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-2);
  text-transform: uppercase;
}

.dues-card {
  margin-top: 0.8em;
  padding: 0 1.1em;
}

.dues-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2em 1em;
  padding: 1.1em 0;
  border-bottom: 0.08em solid #ececec;
  transition: opacity 400ms var(--ease-out);
}

.dues-row:last-child {
  border-bottom: 0;
}

.dues-row b {
  font-size: 1.14em;
  font-weight: 600;
}

.dues-row .amt {
  font-size: 1.14em;
  font-weight: 700;
  text-align: right;
}

.dues-row span {
  font-size: 0.92em;
  color: var(--text-3);
}

.dues-acts {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1em;
  margin-top: 0.3em;
}

.dues-acts svg {
  width: 1.3em;
  height: 1.3em;
  color: var(--text-2);
}

.dues-collect {
  position: relative;
  overflow: hidden;
  padding: 0.55em 1.1em;
  border-radius: 2em;
  background: #f2f3f5;
  font-size: 0.99em;
  font-weight: 700;
  transition:
    background-color 200ms var(--ease-out),
    color 200ms var(--ease-out);
}

.dues-row.is-tapped .dues-collect {
  background: var(--ink);
  color: #fff;
}

.dues-row .paid {
  display: none;
  color: var(--success);
  font-weight: 700;
}

.dues-row.is-paid .paid {
  display: inline;
}

.dues-row.is-paid .dues-acts,
.dues-row.is-paid .owed {
  display: none;
}

.dues-row.is-paid .amt {
  color: var(--text-3);
  text-decoration: line-through;
}

/* Money */

.money-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1em;
  font-size: 1.05em;
  font-weight: 600;
}

.money-range svg {
  width: 1.1em;
  height: 1.1em;
}

.money-total {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  margin-top: 0.7em;
}

.money-total .a-num {
  font-size: 3.9em;
}

.money-total small {
  font-size: 0.84em;
  font-weight: 700;
  color: var(--success);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 0.8em;
  height: 8.6em;
  margin-top: 1.2em;
  padding-bottom: 0.2em;
  box-shadow: inset 0 -0.1em 0 #d8d8d8;
}

.bars i {
  flex: 1;
  border-radius: 0.3em 0.3em 0 0;
  background: #d8d8dc;
  transform-origin: bottom;
  transition: transform 700ms var(--ease-out);
}

.bars i:nth-child(1) {
  height: 22%;
}

.bars i:nth-child(2) {
  height: 48%;
  transition-delay: 70ms;
}

.bars i:nth-child(3) {
  height: 8%;
  transition-delay: 140ms;
}

.bars i:nth-child(4) {
  height: 30%;
  transition-delay: 210ms;
}

.bars i:nth-child(5) {
  height: 16%;
  transition-delay: 280ms;
}

.bars i:nth-child(6) {
  height: 100%;
  transition-delay: 350ms;
}

.bars i:last-child {
  background: var(--text);
}

.bars-days {
  display: flex;
  gap: 0.8em;
  margin-top: 0.4em;
  font-size: 0.78em;
  color: var(--text-3);
}

.bars-days span {
  flex: 1;
  text-align: center;
}

.scr--money:not(.is-on) .bars i {
  transform: scaleY(0.04);
  transition: none;
}

.pay {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15em 0.8em;
  padding: 0.95em 0;
  border-bottom: 0.08em solid #ececec;
}

.pay b {
  font-size: 1.14em;
  font-weight: 700;
}

.pay .who {
  font-size: 1.05em;
  font-weight: 600;
  text-align: right;
}

.pay span {
  font-size: 0.84em;
  color: var(--text-3);
}

.pay .rcpt {
  text-align: right;
}

/* Offline */

.offline-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9.25em;
  z-index: 3;
  transition: transform 500ms var(--ease-out);
}

.offline-band .wait {
  padding: 0.85em 1em;
  background: var(--road);
  color: #3d2900;
  font-size: 0.99em;
  font-weight: 700;
  text-align: center;
}

.offline-band .off {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.55em;
  background: var(--ink);
  color: #fff;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.offline-band .off::before {
  content: "";
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: #e8a33d;
}

.offline-band.is-synced .wait {
  background: #e8fbf3;
  color: var(--success);
}

.offline-band.is-synced .off::before {
  background: var(--lime);
}

.screen-box[data-show="scan"] .status {
  color: #fff;
}

.screen-box[data-show="scan"] .a-tabs,
.screen-box[data-show="scan"] .a-sample {
  opacity: 0;
}

.a-tabs,
.a-sample {
  transition: opacity 300ms var(--ease-out);
}

/* The member's app (Dot) */

.m-place {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.9em;
  font-size: 0.92em;
  color: var(--text-2);
}

.m-place svg {
  width: 1em;
  height: 1em;
}

.m-place .end {
  margin-left: auto;
}

.m-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8em;
  margin-top: 1.3em;
}

.m-tiles span {
  display: grid;
  gap: 0.2em;
  padding: 1.1em;
  border-radius: 1.1em;
  background: #1c1c1c;
  color: #fff;
  font-size: 1.14em;
  font-weight: 700;
}

.m-tiles small {
  font-size: 0.75em;
  font-weight: 500;
  color: rgb(255 255 255 / 0.62);
}

.m-chips {
  display: flex;
  gap: 0.5em;
  margin-top: 1.1em;
  white-space: nowrap;
}

.m-chips span {
  padding: 0.55em 0.85em;
  border-radius: 2em;
  background: #f2f3f5;
  font-size: 0.92em;
  font-weight: 600;
}

.m-chips .on {
  background: var(--text);
  color: #fff;
}

.m-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 1.6em;
}

.m-head b {
  font-size: 1.55em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.m-head span {
  font-size: 0.92em;
  font-weight: 600;
}

.m-rail {
  display: flex;
  gap: 0.9em;
  margin-top: 0.9em;
  margin-right: -1.3em;
  transition: transform 700ms var(--ease-in-out);
}

.m-card {
  flex: 0 0 18.5em;
  overflow: hidden;
  border-radius: 1.2em;
  background: #fff;
  box-shadow: inset 0 0 0 0.1em var(--hairline);
}

.m-card-img {
  position: relative;
  height: 11.5em;
  background: #eef0f3;
}

.m-card-img img {
  position: absolute;
  inset: 0.8em 1.4em 0.4em;
  width: calc(100% - 2.8em);
  height: calc(100% - 1.2em);
  object-fit: contain;
}

.m-card-img .trial {
  position: absolute;
  top: 0.7em;
  left: 0.7em;
  padding: 0.3em 0.55em;
  border-radius: 0.35em;
  background: #1c1c1c;
  color: #fff;
  font-size: 0.66em;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.m-card-body {
  display: grid;
  gap: 0.15em;
  padding: 0.9em 1em 1em;
}

.m-card-body b {
  font-size: 1.14em;
  font-weight: 700;
}

.m-card-body span {
  font-size: 0.92em;
  color: var(--text-3);
}

.m-card-body strong {
  margin-top: 0.2em;
  font-size: 1.14em;
  font-weight: 700;
}

.m-vibes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7em;
  margin-top: 0.9em;
}

.m-vibes span {
  display: grid;
  justify-items: center;
  gap: 0.3em;
  padding: 0.7em 0.3em 0.6em;
  border-radius: 1em;
  background: #f2f3f5;
  font-size: 0.92em;
  font-weight: 600;
}

.m-vibes img {
  width: 5em;
  height: 4em;
  object-fit: contain;
}

/* ------------------------------------------------------------------ members find you */

.find-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}

.find-device {
  position: relative;
  display: grid;
  justify-items: center;
  padding-block: clamp(40px, 6vw, 72px);
  font-size: min(clamp(8.6px, 0.3vw + 6px, 10.6px), calc((100svh - var(--bar-h) - 40px) / 70.5));
}

.find-copy {
  display: grid;
  gap: 28px;
}

.points {
  display: grid;
  gap: 22px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 4px 14px;
}

.points li > svg {
  width: 20px;
  height: 20px;
  margin-top: 0.2em;
}

.points b {
  font-weight: 700;
}

.points p {
  grid-column: 2;
  color: var(--text-2);
}

[data-tone="ink"] .points p {
  color: var(--on-ink-2);
}

.members-note {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--paper-2);
}

.members-note .h3 {
  font-size: 1.25rem;
}

.members-note p {
  color: var(--text-2);
}

.find-map {
  --sx: 0.16;
  --sy: 0.52;
  --zoom: 1.9;
}

.find-device .device {
  position: relative;
  z-index: 1;
}

.find-device figcaption {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--paper);
}

@media (max-width: 899px) {
  .find-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .find-device {
    margin-inline: calc(-1 * var(--gutter));
  }

  .find-device {
    order: 2;
    font-size: min(8.8px, 2.4vw);
  }
}

/* ------------------------------------------------------------------ bring your register */

.register-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
}

.register-top .h2 {
  max-width: 9em;
}

.register-copy {
  display: grid;
  gap: 18px;
  max-width: 34em;
}

.register-copy p {
  color: var(--text-2);
}

.import-ways {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.import-ways li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 0.9375rem;
  font-weight: 600;
}

.register {
  overflow: hidden;
}

.sheet-ground {
  --sx: 0.5;
  --sy: 0.5;
  --zoom: 2.2;
}

.import-stage .sheet-ground {
  inset: calc(-1 * clamp(24px, 4vw, 56px));
}

.import-stage > :not(.sheet-ground) {
  position: relative;
  z-index: 1;
}

.free-ground {
  --sx: 0.78;
  --zoom: 1.35;
}

.free-note {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  max-width: 44rem;
}

.import-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  max-width: 1040px;
  margin: clamp(48px, 7vw, 96px) auto 0;
}

.ledger {
  position: relative;
  padding: 9% 0 6%;
  border-radius: 6px;
  background:
    linear-gradient(
      90deg,
      transparent calc(12% - 1px),
      #e58a8a calc(12% - 1px),
      #e58a8a calc(12% + 1px),
      transparent calc(12% + 1px)
    ),
    #fdfdfb;
  transform: rotate(-3deg);
  font-family: var(--hand);
  font-weight: 500;
  color: #1f3fa8;
  container-type: inline-size;
}

.ledger-rows {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ledger-rows li {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr 0.9fr 0.8fr;
  align-items: end;
  height: 10.6cqw;
  padding: 0 7cqw 0.9cqw 16cqw;
  border-bottom: 1px solid #b7cbe8;
  font-size: 6.2cqw;
  line-height: 1;
  white-space: nowrap;
}

.ledger-rows li:first-child {
  color: #8e1b1b;
}

.ledger-rows li:nth-child(3n + 2) {
  transform: rotate(-0.6deg);
}

.ledger-rows li:nth-child(3n) {
  transform: translateX(1.2cqw) rotate(0.4deg);
}

.ledger-rows .due {
  color: #c5221f;
}

.cam {
  position: absolute;
  inset: -4%;
  pointer-events: none;
}

.cam i {
  position: absolute;
  width: 11%;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 10px;
}

.cam i:nth-child(1) {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.cam i:nth-child(2) {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}

.cam i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
}

.cam i:nth-child(4) {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
}

.cam-line {
  position: absolute;
  left: 2%;
  right: 2%;
  top: 6%;
  height: 3px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 0 1px var(--ink);
  opacity: 0;
}

.imported {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.imported li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2px 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: 0.9375rem;
}

.imported .a-av {
  font-size: 13px;
  width: 34px;
  height: 34px;
  grid-row: span 2;
}

.imported b {
  font-weight: 700;
}

.imported .sub {
  grid-column: 2;
  font-size: 0.8125rem;
  color: var(--text-3);
}

.imported em {
  grid-row: 1 / span 2;
  grid-column: 3;
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--success);
}

.imported em.owes {
  color: #7a5200;
}

.imported-head {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-2);
}

.import-armed .imported li,
.import-armed .imported-head {
  opacity: 0;
  transform: translateX(-12px);
}

.import-run .cam-line {
  animation: cam-scan 1600ms var(--ease-in-out) both;
}

@keyframes cam-scan {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(calc(var(--ledger-h, 400px) * 0.86));
  }
}

.import-run .imported li,
.import-run .imported-head {
  opacity: 1;
  transform: none;
  transition:
    opacity 500ms var(--ease-out),
    transform 600ms var(--ease-out);
  transition-delay: 600ms;
}

.import-run .imported li:nth-child(2) {
  transition-delay: 760ms;
}

.import-run .imported li:nth-child(3) {
  transition-delay: 920ms;
}

.import-run .imported li:nth-child(4) {
  transition-delay: 1080ms;
}

.import-run .imported li:nth-child(5) {
  transition-delay: 1240ms;
}

.import-run .imported li:nth-child(6) {
  transition-delay: 1400ms;
}

.import-run .imported li:nth-child(7) {
  transition-delay: 1560ms;
}

@media (max-width: 899px) {
  .register-top {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 640px) {
  .import-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .ledger {
    width: 86%;
    margin-inline: auto;
  }
}

/* ------------------------------------------------------------------ free */

.free {
  overflow: hidden;
}

.free .h2 {
  font-size: clamp(2.75rem, 1.4rem + 5.4vw, 6.25rem);
  line-height: 0.94;
}

.free-copy {
  display: grid;
  gap: 18px;
  color: var(--text-2);
}

.free-copy strong {
  color: var(--text);
}

/* ------------------------------------------------------------------ talk to us, and the imprint */

.talk {
  text-align: left;
}

.talk-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.talk .h2 {
  max-width: 9em;
}

.talk-actions {
  display: grid;
  gap: 12px;
}

.talk-actions .btn {
  justify-content: flex-start;
  width: 100%;
  min-height: 60px;
  padding-inline: 1.3em;
}

.talk-actions .btn span:last-child {
  margin-left: auto;
  font-weight: 600;
  opacity: 0.72;
}

.talk-note {
  margin-top: 20px;
  max-width: 30em;
  color: var(--on-ink-2);
}

@media (max-width: 899px) {
  .talk-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .talk-actions .btn span:last-child {
    display: none;
  }
}

.imprint {
  position: relative;
  padding-block: clamp(64px, 9vw, 112px) 32px;
}

.imprint-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
}

.imprint .h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.imprint-lead {
  display: grid;
  gap: 14px;
  align-content: start;
}

.imprint-lead p {
  max-width: 26em;
  color: var(--text-2);
}

.facts {
  display: grid;
  grid-template-columns: minmax(8.5em, auto) 1fr;
  gap: 0;
  margin: 0;
}

.facts dt,
.facts dd {
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}

.facts dt {
  padding-right: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-3);
}

.facts dd {
  font-weight: 500;
}

.facts a {
  font-weight: 600;
}

@media (max-width: 899px) {
  .imprint-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts dd {
    padding-top: 0;
    border-top: 0;
  }

  .facts dt {
    padding-bottom: 4px;
  }
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 0.875rem;
  color: var(--text-3);
}

.foot nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot a {
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
}

.foot a:hover {
  color: var(--text);
  text-decoration: underline;
}

.foot .spacer {
  flex: 1;
}

/* ------------------------------------------------------------------ the gyms page */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 120px) clamp(64px, 9vw, 120px);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.page-hero .lede {
  margin-top: 24px;
  max-width: 28em;
}

.inset-map {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--hairline);
  container-type: size;
}

.inset-map .map-panel {
  --sx: 0.5;
  --sy: 0.5;
  --zoom: 2.2;
}

.inset-label {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.92);
}

@media (max-width: 899px) {
  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The day as a route: stations down a line. */
.route {
  position: relative;
  display: grid;
  gap: 0;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}

.route::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: calc(6.5em + 21px);
  width: 6px;
  margin-left: -3px;
  border-radius: 3px;
  background: var(--road);
}

.route li {
  position: relative;
  display: grid;
  grid-template-columns: 6.5em 42px minmax(0, 1fr);
  gap: 0 20px;
  padding-block: 18px;
}

.route time {
  padding-top: 0.15em;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: right;
}

.route .station {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  margin: 0.2em auto 0;
  border-radius: 6px;
  background: var(--ink);
}

.route .station::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.route .stop-copy {
  display: grid;
  gap: 6px;
  max-width: 36em;
}

.route .stop-copy p {
  color: var(--text-2);
}

@media (max-width: 560px) {
  .route::before {
    left: 21px;
  }

  .route li {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .route time {
    grid-column: 2;
    padding: 0;
    text-align: left;
    font-size: 0.9375rem;
    color: var(--text-3);
  }

  .route .station {
    grid-row: 1 / span 2;
    grid-column: 1;
  }

  .route .stop-copy {
    grid-column: 2;
  }
}

/* Everything in Dot Owner as a plate of the atlas: unequal districts on white streets, two
   arterials crossing, each district with its square on the plate. On a phone the districts line
   one road. */
.plate {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr)) 22px repeat(4, minmax(0, 1fr));
  grid-template-rows: auto 22px auto;
  gap: 12px;
  margin-top: clamp(40px, 6vw, 72px);
}

.district {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px 24px 28px;
  border-radius: 3px;
  background: #e4e6eb;
}

.district--1 {
  grid-column: 1 / 6;
  grid-row: 1;
}

.district--2 {
  grid-column: 6 / 9;
  grid-row: 1;
}

.district--3 {
  grid-column: 10 / 14;
  grid-row: 1;
  background: #e8ebe4;
}

.district--4 {
  grid-column: 1 / 4;
  grid-row: 3;
  background: #e8ebe4;
}

.district--5 {
  grid-column: 4 / 9;
  grid-row: 3;
}

.district--6 {
  grid-column: 10 / 14;
  grid-row: 3;
}

.district-ref {
  position: absolute;
  top: 12px;
  right: 14px;
}

.district .h3 {
  padding-right: 28px;
}

.district ul {
  display: grid;
  gap: 9px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
}

.district li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
}

.district li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.58em;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--ink);
}

.district .soon {
  color: var(--text-3);
}

.district .soon::before {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--text-3);
}

.arterial {
  border-radius: 6px;
  background: var(--road);
}

.arterial--h {
  grid-column: 1 / -1;
  grid-row: 2;
}

.arterial--v {
  grid-column: 9 / 10;
  grid-row: 1 / 4;
}

@media (max-width: 1023px) {
  .plate {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 22px repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto 22px auto;
  }

  .district--1 {
    grid-column: 1 / 5;
    grid-row: 1;
  }

  .district--2 {
    grid-column: 6 / 10;
    grid-row: 1;
  }

  .district--3 {
    grid-column: 1 / 5;
    grid-row: 2;
  }

  .district--4 {
    grid-column: 6 / 10;
    grid-row: 2;
  }

  .district--5 {
    grid-column: 1 / 5;
    grid-row: 4;
  }

  .district--6 {
    grid-column: 6 / 10;
    grid-row: 4;
  }

  .arterial--h {
    grid-row: 3;
  }

  .arterial--v {
    grid-column: 5 / 6;
    grid-row: 1 / 5;
  }
}

@media (max-width: 640px) {
  .plate {
    grid-template-columns: 16px minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
    column-gap: 12px;
  }

  .district--1,
  .district--2,
  .district--3,
  .district--4,
  .district--5,
  .district--6 {
    grid-column: 2;
    grid-row: auto;
  }

  .arterial--v {
    grid-column: 1;
    grid-row: 1 / 8;
  }

  .arterial--h {
    grid-column: 1 / -1;
    grid-row: 4;
    height: 16px;
  }

  .district--4,
  .district--5,
  .district--6 {
    grid-row: auto;
  }
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  height: 8px;
  border-radius: 4px;
  background: var(--road);
}

.steps li {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 44px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lime);
  font-weight: 800;
  font-size: 0.9375rem;
}

.steps p {
  color: var(--text-2);
}

@media (max-width: 899px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }

  .steps::before {
    top: 15px;
    bottom: 15px;
    left: 11px;
    right: auto;
    width: 8px;
    height: auto;
  }

  .steps li {
    padding: 0 0 0 52px;
  }
}

.faq {
  display: grid;
  margin-top: clamp(32px, 5vw, 56px);
  max-width: 52rem;
}

.faq details {
  border-top: 1px solid var(--hairline);
}

.faq details:last-child {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding-block: 16px;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--ink);
  transition:
    background-color 200ms var(--ease-out),
    transform 300ms var(--ease-out);
}

.faq details[open] summary::after {
  background: var(--lime);
  box-shadow: inset 0 0 0 3px var(--ink);
  transform: scale(1.25);
}

.faq details p {
  max-width: 40em;
  padding-bottom: 24px;
  color: var(--text-2);
}

/* ------------------------------------------------------------------ not found */

.lost {
  position: relative;
  min-height: calc(100svh - var(--bar-h));
  display: grid;
  align-items: center;
  overflow: hidden;
}

.lost .map-panel {
  opacity: 0.7;
}

@media (max-width: 899px) {
  .lost .map-panel {
    --sx: 0.62;
    --zoom: 1.1;
    opacity: 0.3;
  }
}

.lost .wrap {
  position: relative;
  z-index: 2;
}

.lost-copy .h1 {
  font-size: clamp(2.75rem, 1.5rem + 3.9vw, 4.75rem);
}

.lost-copy {
  display: grid;
  gap: 22px;
  max-width: 38rem;
  margin-block: 40px;
}

.cartouche-panel {
  padding: clamp(24px, 3.4vw, 44px);
  margin-left: calc(-1 * clamp(24px, 3.4vw, 44px));
  background: var(--paper);
}

@media (min-width: 900px) {
  .panel-flush {
    margin-left: calc((100% - 100vw) / 2);
    padding-left: calc((100vw - 100%) / 2);
  }
}

@media (max-width: 899px) {
  .cartouche-panel {
    margin-left: 0;
  }
}

.lost-copy .actions {
  margin-top: 8px;
}

/* ------------------------------------------------------------------ reveals: content is visible by default; the script arms them */

.reveal-armed .reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-armed .reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms var(--ease-out),
    transform 900ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 260ms;
}

/* ------------------------------------------------------------------ reduced motion: everything still, every state visible */

@media (prefers-reduced-motion: reduce) {
  .city-ground,
  .city-tints,
  .callout {
    animation: none;
  }

  .skip,
  .btn,
  .btn-dot,
  .bar,
  .brand-tile rect,
  .stop,
  .pager li,
  .bars i,
  .faq summary::after {
    transition: none;
  }

  .scr,
  .scr.is-on {
    transform: none;
    transition:
      opacity 1ms,
      visibility 0s;
  }

  @view-transition {
    navigation: none;
  }
}
