/* fartographer.me — the swamp map, on the web (spec 024, ADR 0052).
   Colors come ONLY from tokens.generated.css (generated from docs/design/design-tokens.json);
   this file must not contain a hex color — site/tests/test_site.py enforces it. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/space-mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/space-mono-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --font-display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --r-control: 12px;
  --r-card: 16px;
  --r-sheet: 22px;
  --gutter: 16px;
  --border: color-mix(in srgb, var(--text-primary) 16%, transparent);
  --separator: color-mix(in srgb, var(--text-primary) 10%, transparent);
  --puff: color-mix(in srgb, var(--primary) 30%, var(--surface-sunken));
  --puff-soft: color-mix(in srgb, var(--primary) 14%, var(--bg));
  --shadow: 0 1px 0 var(--separator), 0 10px 30px -18px color-mix(in srgb, var(--text-primary) 45%, transparent);
  /* One lumpy cloud with a trail of little puffs, used as a mask so it takes any token color. */
  --cloud-trail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 92'%3E%3Cg fill='black'%3E%3Ccircle cx='40' cy='48' r='21'/%3E%3Ccircle cx='62' cy='34' r='25'/%3E%3Ccircle cx='86' cy='47' r='19'/%3E%3Ccircle cx='63' cy='56' r='21'/%3E%3Ccircle cx='97' cy='60' r='12'/%3E%3Ccircle cx='19' cy='72' r='7.5'/%3E%3Ccircle cx='7' cy='85' r='4.5'/%3E%3C/g%3E%3C/svg%3E");
  --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 64'%3E%3Cg fill='black'%3E%3Ccircle cx='26' cy='40' r='20'/%3E%3Ccircle cx='48' cy='26' r='24'/%3E%3Ccircle cx='72' cy='36' r='20'/%3E%3Ccircle cx='50' cy='44' r='20'/%3E%3Ccircle cx='86' cy='48' r='13'/%3E%3Crect x='12' y='44' width='80' height='17' rx='8.5'/%3E%3C/g%3E%3C/svg%3E");
  --cloud-bank: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cg fill='black'%3E%3Ccircle cx='14' cy='34' r='18'/%3E%3Ccircle cx='46' cy='26' r='22'/%3E%3Ccircle cx='82' cy='32' r='18'/%3E%3Ccircle cx='112' cy='22' r='22'/%3E%3Ccircle cx='146' cy='32' r='19'/%3E%3Ccircle cx='180' cy='26' r='22'/%3E%3Crect x='0' y='32' width='200' height='8'/%3E%3C/g%3E%3C/svg%3E");
}

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}
a:hover {
  color: var(--primary-hover);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 9vw, 4.9rem);
}
h2 {
  font-size: clamp(1.9rem, 5.5vw, 3rem);
}
h3 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: var(--gutter);
  z-index: 10;
  background: var(--surface-raised);
  padding: 8px 12px;
  border-radius: var(--r-control);
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.9em;
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1em;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--cloud) center / contain no-repeat;
  mask: var(--cloud) center / contain no-repeat;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  flex: none;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 2;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font: 800 1.3rem/1 var(--font-display);
  letter-spacing: -0.02em;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.nav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.95rem;
}
.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 0;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text-primary);
}
@media (max-width: 540px) {
  .nav .nav-extra {
    display: none;
  }
}

/* ---------- Buttons & store badges ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.4em 0 0.6em;
}
.btn,
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 18px;
  border-radius: var(--r-control);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.15;
}
.btn {
  background: var(--primary);
  color: var(--on-primary);
}
.btn:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
}
.btn:active {
  background: var(--primary-pressed);
}
.btn-quiet {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-quiet:hover {
  background: var(--surface);
  color: var(--text-primary);
}
.store {
  background: var(--text-primary);
  color: var(--bg);
  min-width: 180px;
}
.store:hover {
  color: var(--bg);
  background: var(--text-secondary);
}
.store small {
  display: block;
  font: 400 0.72rem/1.2 var(--font-body);
  letter-spacing: 0.02em;
}
.store strong {
  display: block;
  font: 800 1.15rem/1.1 var(--font-display);
}
.store .icon {
  width: 26px;
  height: 26px;
}
.store[aria-disabled="true"] {
  background: var(--surface);
  color: var(--text-primary);
  border: 1.5px dashed var(--border);
  cursor: default;
}

/* ---------- Puffs: fart clouds that escape the corners of things ---------- */
.puffs {
  position: relative;
  isolation: isolate;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow);
}
/* The cloud sits BEHIND the card (z-index -1 in the .puffs stacking context), so it reads as
   gas escaping from behind the corner; the little trail drifts out past it. */
.card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: var(--puff-size, 96px);
  aspect-ratio: 120 / 92;
  top: var(--puff-top, -34px);
  right: var(--puff-right, -30px);
  left: var(--puff-left, auto);
  bottom: var(--puff-bottom, auto);
  background: var(--puff);
  -webkit-mask: var(--cloud-trail) center / contain no-repeat;
  mask: var(--cloud-trail) center / contain no-repeat;
  transform: scale(var(--puff-flip-x, 1), var(--puff-flip-y, 1)) rotate(var(--puff-rot, 0deg));
}
.puff-tl {
  --puff-left: -30px;
  --puff-right: auto;
  --puff-flip-x: -1;
}
.puff-br {
  --puff-top: auto;
  --puff-bottom: -30px;
  --puff-flip-y: -1;
}
.puff-bl {
  --puff-top: auto;
  --puff-bottom: -30px;
  --puff-left: -30px;
  --puff-right: auto;
  --puff-flip-x: -1;
  --puff-flip-y: -1;
}
.puff-sm {
  --puff-size: 70px;
  --puff-top: -24px;
}
.puff-none::before {
  display: none;
}

/* ---------- Hero: the headline lives inside a cloud ---------- */
.hero {
  position: relative;
  padding: 18px 0 72px;
  background: var(--bg-grouped);
}
.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
    padding-top: 24px;
  }
}
.hero-cloud {
  position: relative;
  isolation: isolate;
  margin: 0 -8px;
  padding: 70px 34px 64px;
}
.hero-cloud > svg.cloud-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1.5;
  overflow: visible;
  filter: drop-shadow(0 18px 30px color-mix(in srgb, var(--text-primary) 14%, transparent));
}
/* On a phone the cloud is tall and narrow, so let it billow past the text: the bumpy top sits
   above the eyebrow and the sides clear the copy. */
@media (max-width: 599px) {
  .hero-cloud {
    margin-top: 40px;
  }
  .hero-cloud > svg.cloud-shape {
    inset: -64px -44px -12px -44px;
    width: calc(100% + 88px);
    height: calc(100% + 76px);
  }
}
@media (min-width: 600px) {
  .hero-cloud {
    margin: 0;
    padding: 78px 64px 60px 56px;
  }
}
.hero h1 .moss {
  color: var(--primary);
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 34em;
}
.coords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 6px;
}
/* The bank of clouds that rolls off the bottom of a section into the next one. */
.cloud-bank {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 46px;
  background: var(--bg);
  -webkit-mask: var(--cloud-bank) 0 100% / 260px 46px repeat-x;
  mask: var(--cloud-bank) 0 100% / 260px 46px repeat-x;
  pointer-events: none;
}

/* ---------- Devices: real screenshots, one collage per platform, switched by tabs ---------- */
.center {
  justify-content: center;
}
.tabs {
  display: flex;
  width: fit-content;
  margin: 0 auto 18px;
  padding: 5px;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.tabs [role="tab"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-secondary);
  font: 800 0.95rem/1 var(--font-display);
  cursor: pointer;
}
.tabs [role="tab"]:hover {
  color: var(--text-primary);
}
.tabs [role="tab"][aria-selected="true"] {
  background: var(--primary);
  color: var(--on-primary);
}
.tabs [role="tab"]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.tabs .icon {
  width: 16px;
  height: 16px;
}
.collage {
  margin: 0;
}
.collage[hidden] {
  display: none;
}
.collage img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
}
.collage figcaption {
  margin-top: 10px;
  text-align: center;
  font: 700 0.72rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}
.devices {
  position: relative;
  isolation: isolate;
}
.devices .float-puff {
  position: absolute;
  z-index: -1;
  background: var(--puff);
  -webkit-mask: var(--cloud) center / contain no-repeat;
  mask: var(--cloud) center / contain no-repeat;
  aspect-ratio: 100 / 64;
}
.devices .fp1 {
  width: 150px;
  right: max(0px, calc(50% - 230px));
  top: 8%;
}
.devices .fp2 {
  width: 110px;
  left: max(0px, calc(50% - 220px));
  bottom: 18%;
  background: var(--puff-soft);
}
.devices .fp3 {
  width: 64px;
  left: max(10px, calc(50% - 190px));
  top: 14%;
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
  position: relative;
}
/* Puffs escape their cards on purpose, but never the page: clip each band horizontally. */
main > *,
.site-footer {
  overflow-x: clip;
}
.section-head {
  max-width: 44em;
  margin-bottom: 40px;
}
.section-head p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}
.grid {
  display: grid;
  gap: 40px 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature .badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--primary) 16%, var(--surface));
  color: var(--primary);
  margin-bottom: 14px;
}
.feature .badge .icon {
  width: 22px;
  height: 22px;
}
.feature p {
  color: var(--text-secondary);
  margin: 0;
}
.plate {
  position: absolute;
  top: 16px;
  right: 18px;
  font: 700 0.68rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

/* The map legend: one key per FartType. */
.legend-sec {
  background: var(--bg-grouped);
}
.legend {
  display: grid;
  gap: 36px 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.legend .card {
  --puff: color-mix(in srgb, var(--acc) 30%, var(--surface-sunken));
}
.legend .head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.legend .badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--acc);
  background: color-mix(in srgb, var(--acc) 14%, var(--surface));
}
.legend .badge .icon {
  width: 26px;
  height: 26px;
}
.legend h3 {
  margin: 0;
}
.legend .map-label {
  font: 400 0.78rem/1.3 var(--font-mono);
  color: var(--acc);
  margin: 2px 0 0;
}
.legend .tagline {
  margin: 14px 0 0;
  color: var(--text-primary);
}
.acc-squeaker { --acc: var(--accent-squeaker); }
.acc-big-blast { --acc: var(--accent-big-blast); }
.acc-silent { --acc: var(--accent-silent); }
.acc-wet { --acc: var(--accent-wet); }
.acc-rumbler { --acc: var(--accent-rumbler); }
.acc-trumpet { --acc: var(--accent-trumpet); }

/* The live leaderboard: a field ledger. */
.board-sec {
  padding-bottom: 88px;
}
.board-layout {
  display: grid;
  gap: 8px 48px;
  align-items: start;
}
@media (min-width: 900px) {
  .board-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
}
.board {
  padding: 18px 8px 10px;
  min-height: 240px;
}
.board-head,
.board-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 0 14px;
}
.board-head {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--separator);
}
.board-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.board-row {
  min-height: 52px;
  border-bottom: 1px solid var(--separator);
}
.board-row:last-child {
  border-bottom: 0;
}
.board-rank {
  font: 700 1rem/1 var(--font-mono);
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-secondary);
}
.podium-1 .board-rank,
.podium-2 .board-rank,
.podium-3 .board-rank {
  color: var(--text-primary);
  border: 3px solid var(--medal);
  background: color-mix(in srgb, var(--medal) 14%, var(--surface));
}
.podium-1 { --medal: var(--medal-gold); }
.podium-2 { --medal: var(--medal-silver); }
.podium-3 { --medal: var(--medal-bronze); }
.board-name {
  font-weight: 600;
  overflow-wrap: anywhere;
  min-width: 0;
}
.podium-1 .board-name {
  font: 800 1.15rem/1.2 var(--font-display);
}
.board-count {
  font: 700 0.95rem/1 var(--font-mono);
  color: var(--primary);
}
.supporter {
  display: inline-block;
  vertical-align: 0.1em;
  font: 700 0.62rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--on-primary);
  background: var(--primary);
}
.board-note {
  display: none;
  padding: 26px 14px 14px;
  margin: 0;
  color: var(--text-secondary);
  text-align: center;
}
.board[data-state="loading"] .board-note[data-show="loading"],
.board[data-state="empty"] .board-note[data-show="empty"],
.board[data-state="error"] .board-note[data-show="error"] {
  display: block;
}
.board noscript .board-note {
  display: block;
}
.board:not([data-state="ok"]) .board-rows {
  display: none;
}

/* How it works: a three-step log. */
.steps {
  counter-reset: step;
  display: grid;
  gap: 40px 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
}
.steps li::after {
  content: "0" counter(step);
  position: absolute;
  top: 18px;
  right: 18px;
  font: 700 2.2rem/1 var(--font-mono);
  color: color-mix(in srgb, var(--primary) 40%, var(--surface));
}
.steps h3 {
  padding-right: 3em;
}
.steps p {
  color: var(--text-secondary);
  margin: 0;
}

/* Get the app band. */
.get {
  text-align: center;
}
.get .card {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 22px 40px;
  --puff-size: 150px;
  --puff-top: -56px;
  --puff-right: -40px;
}
.get .card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 110px;
  aspect-ratio: 120 / 92;
  left: -38px;
  bottom: -40px;
  background: var(--puff-soft);
  -webkit-mask: var(--cloud-trail) center / contain no-repeat;
  mask: var(--cloud-trail) center / contain no-repeat;
  transform: scale(-1, -1);
}
.get .actions {
  justify-content: center;
}
.get p {
  color: var(--text-secondary);
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--bg-grouped);
  padding: 72px 0 32px;
  margin-top: 40px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.site-footer .cloud-bank {
  top: -1px;
  bottom: auto;
  transform: scaleY(-1);
}
.site-footer .wrap {
  display: grid;
  gap: 24px;
}
@media (min-width: 760px) {
  .site-footer .wrap {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.site-footer h2 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--text-primary);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.site-footer a {
  color: var(--text-secondary);
}
.site-footer a:hover {
  color: var(--text-primary);
}
.site-footer .fine {
  grid-column: 1 / -1;
  border-top: 1px solid var(--separator);
  padding-top: 18px;
  font-size: 0.85rem;
}

/* ---------- Document pages (legal, support) ---------- */
.doc-hero {
  position: relative;
  background: var(--bg-grouped);
  padding: 40px 0 76px;
}
.doc-hero h1 {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
}
.doc-hero p {
  color: var(--text-secondary);
  max-width: 40em;
}
.doc {
  padding: 40px 0 24px;
}
.doc .wrap {
  max-width: 780px;
}
.doc h2 {
  font-size: 1.6rem;
  margin-top: 1.8em;
  scroll-margin-top: 16px;
}
.doc h3 {
  margin-top: 1.4em;
}
.doc ul,
.doc ol {
  padding-left: 1.3em;
}
.doc li {
  margin: 0.35em 0;
}
.doc .card {
  margin: 28px 0;
}
.doc .card h2,
.doc .card h3 {
  margin-top: 0;
}
.toc {
  font-size: 0.95rem;
}
.toc ol {
  columns: 2 220px;
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
  margin: 1em 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--separator);
}
th {
  font-family: var(--font-display);
  background: var(--surface-sunken);
}
dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 0;
}
dl.facts dt {
  font: 700 0.8rem/1.6 var(--font-mono);
  color: var(--text-secondary);
}
dl.facts dd {
  margin: 0;
}

/* ---------- Share landing ---------- */
.share-main {
  min-height: 60vh;
  padding: 30px 0 40px;
  position: relative;
}
.share-main .wrap {
  max-width: 620px;
}
.shared-pin {
  margin-top: 56px;
  padding: 30px 22px 26px;
  text-align: center;
  --puff-size: 130px;
  --puff-top: -52px;
  --puff-right: -36px;
}
.shared-pin .badge {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  color: var(--acc, var(--primary));
  background: color-mix(in srgb, var(--acc, var(--primary)) 16%, var(--surface));
}
.shared-pin .badge .icon {
  width: 46px;
  height: 46px;
}
.shared-pin h1 {
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  margin-bottom: 0.2em;
}
.shared-pin .tagline {
  font-size: 1.2rem;
}
.shared-pin .age {
  margin-top: 4px;
}
.shared-pin .actions {
  justify-content: center;
}
.shared-pin[data-state="loading"] .badge {
  animation: none;
  opacity: 0.6;
}
.shared-pin [data-show] {
  display: none;
}
.shared-pin[data-state="loading"] [data-show~="loading"],
.shared-pin[data-state="ok"] [data-show~="ok"],
.shared-pin[data-state="not-found"] [data-show~="not-found"],
.shared-pin[data-state="bad-link"] [data-show~="bad-link"],
.shared-pin[data-state="error"] [data-show~="error"] {
  display: block;
}
.shared-pin .actions[data-show] {
  display: none;
}
.shared-pin[data-state="ok"] .actions[data-show~="ok"],
.shared-pin[data-state="not-found"] .actions[data-show~="not-found"],
.shared-pin[data-state="bad-link"] .actions[data-show~="bad-link"],
.shared-pin[data-state="error"] .actions[data-show~="error"] {
  display: flex;
}
.privacy-note {
  margin-top: 26px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.privacy-note .icon {
  display: inline-block;
  vertical-align: -0.15em;
  margin-right: 4px;
}
button.btn {
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- 404 ---------- */
.lost {
  text-align: center;
  padding: 50px 0 90px;
}
.lost .big {
  font: 800 clamp(5rem, 26vw, 11rem)/0.9 var(--font-display);
  color: var(--primary);
  letter-spacing: -0.05em;
  margin: 0;
}
.lost .card {
  max-width: 560px;
  margin: 30px auto 0;
}

/* ---------- Motion: a poof on arrival, then a lazy drift. Never under reduced motion. ---------- */
@media (prefers-reduced-motion: no-preference) {
  .card::before,
  .devices .float-puff {
    animation:
      poof 700ms cubic-bezier(0.3, 0, 0, 1) both,
      drift 9s ease-in-out 700ms infinite alternate;
  }
  .grid > :nth-child(2)::before,
  .legend > :nth-child(2)::before,
  .steps > :nth-child(2)::before {
    animation-delay: 120ms, 820ms;
  }
  .grid > :nth-child(3)::before,
  .legend > :nth-child(3)::before {
    animation-delay: 240ms, 940ms;
  }
  .devices .fp2 {
    animation-duration: 700ms, 11s;
  }
  .hero-cloud > svg.cloud-shape {
    animation: swell 900ms cubic-bezier(0.3, 0, 0, 1) both;
  }
  .shared-pin[data-state="ok"] .badge {
    animation: poof-in 520ms cubic-bezier(0.3, 0, 0, 1) both;
  }
}
@keyframes poof {
  0% {
    opacity: 0;
    scale: 0.35;
  }
  60% {
    opacity: 1;
    scale: 1.1;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}
@keyframes drift {
  to {
    translate: 6px -7px;
  }
}
@keyframes swell {
  from {
    opacity: 0;
    scale: 0.94;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
@keyframes poof-in {
  0% {
    scale: 0.5;
    opacity: 0;
  }
  70% {
    scale: 1.08;
  }
  100% {
    scale: 1;
    opacity: 1;
  }
}
@keyframes rise {
  0% {
    opacity: 0;
    translate: 0 6px;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    translate: 10px -26px;
  }
}
