/* Stamp Atlas website: shared styles for the home page, Support, the legal pages and 404.
   Typefaces are the app's own (Gloock, Albert Sans); colours are the brand's deep navy and gold. */

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

@font-face {
  font-family: "Albert Sans";
  src: url("/fonts/AlbertSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #061430;
  --navy-900: #0A1C3A;
  --navy-850: #0C2143;
  --navy-800: #0F2649;
  --navy-700: #15305A;
  --land: #17335F;
  --line: rgba(184, 194, 214, .14);
  --line-2: rgba(184, 194, 214, .26);
  --ink: #F3EEE3;
  --sub: #C3CBDC;
  --muted: #98A4BC;
  --gold: #E2C17C;
  --gold-hover: #ECCF92;
  --gold-press: #C9A762;
  --gold-lit: #B8954F;
  --on-gold: #12203C;
  --paper: #F6F2E8;
  --paper-2: #EDE6D7;
  --paper-ink: #1C1D21;
  --paper-sub: #55524B;
  --paper-line: #E0D8C7;
  --paper-link: #7A5C1E;
  --app: #1C1D21;
  --app-2: #26272B;
  --app-ink: #EFEBE3;
  --app-muted: #B5B0A6;
  --app-gold: #D4B06A;
  --serif: "Gloock", Georgia, "Times New Roman", serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --maxw: 72rem;
  --head-h: 64px;
  --radius: 22px;
  --shadow: 0 30px 60px rgba(3, 10, 24, .45), 0 8px 18px rgba(3, 10, 24, .28);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; --head-h: 72px; }
}

@media (min-width: 1100px) {
  :root { --gutter: 48px; }
}

/* ---------- Base ---------- */

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

html {
  color-scheme: dark;
  background: var(--navy-950);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy-800);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; text-wrap: balance; }
p { margin: 0; }
p, li, dd { text-wrap: pretty; }
button { font: inherit; color: inherit; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.skip {
  position: absolute;
  left: 12px;
  top: -200px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus { top: 12px; }

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

.gold { color: var(--gold); }

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 28, 58, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-head { background: var(--navy-900); }
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--head-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.pill) {
  padding: 10px 0;
  color: var(--sub);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:not(.pill):hover,
.site-nav a[aria-current="page"]:not(.pill) { color: var(--ink); }

@media (max-width: 959px) {
  .site-nav .nav-wide { display: none; }
}

@media (max-width: 480px) {
  .site-nav a:not(.pill) { display: none; }
}

/* ---------- Buttons and store badges ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, transform .15s;
}

.pill:hover { background: var(--gold-hover); }
.pill:active { background: var(--gold-press); transform: translateY(1px); }

.pill.small {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 1rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.badge {
  display: inline-block;
  border-radius: 9px;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s;
}

.badge img { width: auto; height: 48px; }
.badge:hover { transform: translateY(-1px); }
.badge:active { transform: translateY(1px); }

@media (max-width: 359px) {
  .badges { gap: 10px; }
  .badge img { height: 42px; }
}

@media (min-width: 960px) {
  .badges { gap: 14px; }
  .badge img { height: 54px; }
}

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(70% 55% at 85% 8%, rgba(52, 92, 164, .38), rgba(52, 92, 164, 0) 70%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-850) 100%);
}

.hero .wrap {
  display: grid;
  gap: 14px;
  padding-top: clamp(16px, 5vw, 56px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero .eyebrow { margin-bottom: 10px; }

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.75rem, 1.75rem + 4.6vw, 5.125rem);
  line-height: 1;
  letter-spacing: -.02em;
}

.lead {
  max-width: 34rem;
  color: var(--sub);
  font-size: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem);
  line-height: 1.5;
}

.hero .lead { margin: 0 0 22px; }
.hero .badges { margin: 0 0 12px; }

.points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--sub);
  font-size: 1rem;
}

.points li { display: inline-flex; align-items: center; gap: 8px; }
.points svg { flex: none; width: 18px; height: 18px; color: var(--gold); }
.hero .fine { margin-top: 6px; color: var(--muted); font-size: .8125rem; line-height: 1.3; letter-spacing: .01em; }

/* Phones: keep the stamp and its value on the first screen */
@media (max-width: 599px) {
  .hero .wrap { padding-top: 12px; gap: 10px; }
  .hero .eyebrow { margin-bottom: 8px; }
  .hero h1 { margin-bottom: 12px; }
  .hero .lead { margin-bottom: 18px; }
  .hero .badges { margin-bottom: 10px; }
  .hero .fine { margin-top: 4px; }
  .hero-art { margin-top: 0; }
}

.hero-art {
  position: relative;
  width: min(100%, 336px);
  margin: 4px auto 0;
}

@media (min-width: 600px) {
  .hero-art { width: 380px; }
}

.hero-art .phone { width: 100%; }

.hero-art .float { display: none; }

@media (min-width: 960px) {
  .hero .eyebrow { margin-bottom: 14px; }
  .hero h1 { margin-bottom: 18px; }
  .hero .lead { margin-bottom: 28px; }
  .hero .badges { margin-bottom: 16px; }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("/images/hero-map-1600.jpg?v=a3b9139b");
    background-image: image-set(url("/images/hero-map-1600.webp?v=83a71bf7") type("image/webp"), url("/images/hero-map-1600.jpg?v=a3b9139b") type("image/jpeg"));
    background-position: 62% 46%;
    background-size: cover;
    opacity: .6;
    -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 55%);
    mask-image: linear-gradient(90deg, transparent 8%, #000 55%);
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: 48px;
    min-height: min(820px, calc(100vh - var(--head-h)));
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-art { width: 380px; margin: 0 auto; }
}

@media (min-width: 1100px) {
  .hero-art .float {
    display: block;
    position: absolute;
    z-index: -1;
    height: auto;
    filter: drop-shadow(0 18px 22px rgba(3, 10, 24, .55)) drop-shadow(0 3px 5px rgba(3, 10, 24, .4));
  }

  .float.f1 { width: 150px; left: -128px; top: 54%; transform: rotate(-11deg); }
  .float.f2 { width: 138px; right: -112px; top: 17%; transform: rotate(8deg); }
  .float.f3 { width: 84px; left: -70px; top: 13%; transform: rotate(10deg); }
  .float.f4 { width: 92px; right: -66px; top: 64%; transform: rotate(-9deg); }
}

/* ---------- Home: quick facts ---------- */

.facts {
  background: var(--navy-900);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  margin: 0;
  padding: 26px 0;
  list-style: none;
}

.facts li { display: flex; align-items: flex-start; gap: 12px; }
.facts svg { flex: none; width: 26px; height: 26px; margin-top: 1px; color: var(--gold); }
.facts strong { display: block; color: var(--ink); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.facts span { display: block; margin-top: 2px; color: var(--sub); font-size: 1rem; line-height: 1.4; }

@media (min-width: 960px) {
  .facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 30px 0; }
}

/* ---------- Home: sections ---------- */

.sec {
  position: relative;
  padding-top: clamp(72px, 9vw, 128px);
  padding-bottom: clamp(72px, 9vw, 128px);
}

.sec.tone-1 { background: var(--navy-800); }
.sec.tone-2 { background: var(--navy-900); }
.sec.tone-3 { background: var(--navy-950); }

.sec-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }

.sec h2 {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 1.55rem + 2.9vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.015em;
}

/* How it works */
.steps3 {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .step-art { height: 220px; }
}

.step {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 16px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
}

.step-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 190px;
  overflow: hidden;
  border-radius: 16px;
  background: radial-gradient(90% 80% at 50% 30%, #2A2B30, var(--app) 70%);
  color: var(--app-ink);
}

.step-text { padding: 0 8px; }

.step h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 1.625rem;
  line-height: 1.1;
}

.step h3 .n { color: var(--gold); }
.step p { color: var(--sub); font-size: 1.0625rem; }

.steps-note { margin-top: 22px; color: var(--muted); font-size: 1rem; text-align: center; }

/* step 1: the camera view */
.viewfinder { position: relative; width: 128px; padding: 14px; }
.viewfinder img { width: 100px; margin: 0 auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); }

.viewfinder i {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid var(--app-gold);
}

.viewfinder i:nth-child(1) { left: 0; top: 0; border-left-width: 3px; border-top-width: 3px; border-top-left-radius: 6px; }
.viewfinder i:nth-child(2) { right: 0; top: 0; border-right-width: 3px; border-top-width: 3px; border-top-right-radius: 6px; }
.viewfinder i:nth-child(3) { left: 0; bottom: 0; border-left-width: 3px; border-bottom-width: 3px; border-bottom-left-radius: 6px; }
.viewfinder i:nth-child(4) { right: 0; bottom: 0; border-right-width: 3px; border-bottom-width: 3px; border-bottom-right-radius: 6px; }

/* steps 2 and 3: app cards */
.app-card {
  width: min(86%, 300px);
  padding: 20px 20px 18px;
  border-radius: 20px;
  background: #2A2B2F;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .45);
  font-family: var(--sans);
}

.app-card .row { display: flex; align-items: center; gap: 14px; }
.app-card .row img { width: 46px; flex: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.app-card .name { font-family: var(--serif); font-size: 1.375rem; line-height: 1.08; color: var(--app-ink); }
.app-card .meta { margin-top: 3px; color: var(--app-muted); font-size: .9375rem; }

.match {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 5px 13px 5px 10px;
  border: 1.5px solid #786745;
  border-radius: 999px;
  color: var(--app-gold);
  font-size: .9375rem;
  font-weight: 600;
}

.match svg { width: 15px; height: 15px; }

.app-card .label {
  color: var(--app-muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.app-card .big {
  margin-top: 6px;
  color: var(--app-gold);
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.app-card .small { margin-top: 8px; color: var(--app-muted); font-size: .9375rem; }

/* Small caption under example visuals */
.art-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
  text-align: center;
}

.compare-wrap .art-note { margin-top: 12px; }

/* Two-column feature sections */
.split { display: grid; gap: 44px; align-items: center; }

@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; }
  .split.rev .split-art { order: -1; }
}

.split .sec-head { margin-bottom: 0; }
.split-art img { width: min(100%, 450px); margin: 0 auto; }

.ticks {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.125rem; line-height: 1.5; }
.ticks svg { flex: none; width: 26px; height: 26px; margin-top: 1px; }

.callout {
  margin-top: 30px;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: rgba(226, 193, 124, .08);
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.5;
}

/* Values */
.values-grid { display: grid; gap: 28px; }
.values-grid > .sec-head { margin-bottom: 8px; }

@media (min-width: 960px) {
  .values-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "head est" "cmp est" "note est";
    grid-template-rows: auto auto 1fr;
    column-gap: 56px;
    row-gap: 36px;
    align-items: start;
  }

  .values-grid > .sec-head { grid-area: head; margin-bottom: 0; }
  .values-grid > .est { grid-area: est; }
  .values-grid > .compare-wrap { grid-area: cmp; }
  .values-grid > .honest { grid-area: note; margin-top: 0; }
}

.est {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 28px;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: var(--shadow);
}

.est-head { display: flex; align-items: center; gap: 18px; }

.est-thumb {
  display: grid;
  flex: none;
  place-items: center;
  width: 84px;
  height: 98px;
  border-radius: 14px;
  background: var(--app);
}

.est-thumb img { width: 60px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.est-name { font-family: var(--serif); font-size: 1.625rem; line-height: 1.05; }
.est-meta { margin-top: 4px; color: var(--paper-sub); font-size: 1rem; }

.est-label,
.est-why {
  margin-top: 26px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-sub);
}

.est-why { color: #8A6A22; }

.est-value {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.9rem + 2.2vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.est-cond { margin-top: 6px; color: var(--paper-sub); }
.est-cond b { color: #8A6A22; font-weight: 600; }

.est dl { margin: 10px 0 0; }

.est dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--paper-line);
}

.est dt { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.est dt svg { flex: none; width: 24px; height: 24px; }
.est dd { margin: 0; color: var(--paper-sub); text-align: right; }
.est-foot { margin-top: 16px; color: var(--paper-sub); font-size: .9375rem; }

.compare-wrap h3 { margin-bottom: 10px; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); line-height: 1.08; }
.compare-wrap > p { margin-bottom: 22px; color: var(--sub); }

.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 28px;
  background: var(--app-2);
  box-shadow: var(--shadow);
}

.compare figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 22px 8px 20px;
  border-radius: 20px;
  text-align: center;
}

.compare figure.hi { background: #2D2B27; box-shadow: inset 0 0 0 2px var(--app-gold); }
.compare img { width: min(120px, 78%); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); }
.compare figcaption { margin-top: 14px; color: var(--app-muted); font-size: 1rem; line-height: 1.3; }
.compare .hi figcaption { color: var(--app-ink); }

.compare .v {
  display: block;
  margin-top: 6px;
  color: #A9A49A;
  font-family: var(--serif);
  font-size: clamp(1.0625rem, .7rem + 2.2vw, 1.875rem);
  line-height: 1.05;
  white-space: nowrap;
}

.compare .hi .v { color: var(--app-gold); }

.honest {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
}

.honest svg { flex: none; width: 24px; height: 24px; margin-top: 2px; color: var(--gold); }
.honest p { color: var(--sub); font-size: 1.0625rem; line-height: 1.55; }
.honest strong { color: var(--ink); font-weight: 600; }

/* World map */
.atlas { position: relative; }

.atlas-map {
  position: relative;
  aspect-ratio: 1000 / 522;
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
}

.atlas-map svg { width: 100%; height: 100%; }

@media (min-width: 720px) {
  .atlas-map {
    margin-left: 0;
    margin-right: 0;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: radial-gradient(80% 90% at 50% 40%, #0D234A, var(--navy-950) 75%);
  }

  .atlas-map svg { border-radius: 28px; }
}

.atlas .land,
.atlas .lit {
  stroke: var(--navy-950);
  stroke-width: .6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.atlas .land { fill: var(--land); }
.atlas .lit { fill: var(--gold-lit); transition: fill .7s ease; }
html.js .atlas:not(.is-lit) .lit { fill: var(--land); }
html.js .atlas.is-lit .lit { transition-delay: calc(var(--i, 0) * 55ms); }
html.js .atlas.is-lit .lit.is-sel { fill: #F2D69A; transition-delay: 0s; }

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #F2D69A;
  box-shadow: 0 0 0 3px rgba(6, 20, 48, .8);
  pointer-events: none;
}

.pin.is-sel::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 2px solid #F2D69A;
  border-radius: 50%;
  animation: ping 1.8s ease-out infinite;
}

@keyframes ping {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.tile {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: none;
  width: clamp(42px, 5.2vw, 62px);
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%) translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg));
  transition: transform .25s ease;
  -webkit-tap-highlight-color: transparent;
}

.tile img { width: 100%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)); }
.tile:hover { transform: translate(-50%, -50%) translate(var(--dx, 0px), var(--dy, 0px)) scale(1.08); }

.tile.is-sel {
  z-index: 2;
  outline: 2px solid #F2D69A;
  outline-offset: 4px;
  transform: translate(-50%, -50%) translate(var(--dx, 0px), var(--dy, 0px)) scale(1.16);
}

.tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
html:not(.js) .tile { pointer-events: none; cursor: default; }

@media (min-width: 720px) {
  .tile { display: block; }
  .pin { display: none; }
}

.atlas-panel { margin-top: 18px; }

.atlas-count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(6, 20, 48, .88);
  color: var(--sub);
  font-size: 1rem;
}

.atlas-count strong {
  min-width: 1.3em;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.atlas-cards { margin-top: 12px; }

.stamp-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 6px 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 20px;
  background: var(--app);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
}

.stamp-card picture { grid-row: span 3; align-self: start; }
.stamp-card img { width: 72px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); }
.stamp-card h3 { color: var(--app-ink); font-size: 1.3125rem; line-height: 1.1; }
.stamp-card .meta { color: var(--app-muted); font-size: .9375rem; }
.stamp-card .val { color: var(--app-gold); font-family: var(--serif); font-size: 1.5rem; line-height: 1.05; white-space: nowrap; }

.stamp-card .about {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--app-muted);
  font-size: 1rem;
  line-height: 1.5;
}

html:not(.js) .atlas-cards { display: grid; gap: 12px; }

@media (min-width: 720px) {
  html:not(.js) .atlas-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

html.js .stamp-card:not(.is-on) { display: none; }

.atlas-chips { display: none; }

html.js .atlas-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 16px 6px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.chip img { width: 28px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.chip[aria-pressed="true"] { border-color: var(--gold); background: rgba(226, 193, 124, .14); }

@media (min-width: 720px) and (max-width: 1199px) {
  html.js .atlas-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 24px;
    align-items: start;
  }

  html.js .atlas-panel .atlas-count { grid-column: 1; justify-self: start; }
  html.js .atlas-panel .atlas-cards { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  html.js .atlas-panel .atlas-chips { grid-column: 1; }
}

@media (min-width: 1200px) {
  html.js .atlas-panel {
    position: absolute;
    left: 18px;
    bottom: 18px;
    width: clamp(236px, 25%, 276px);
    margin: 0;
  }

  html.js .atlas-chips { display: none; }
  html.js .atlas-panel .stamp-card { grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; padding: 14px; }
  html.js .atlas-panel .stamp-card img { width: 56px; }
  html.js .atlas-panel .stamp-card h3 { font-size: 1.1875rem; }
  html.js .atlas-panel .stamp-card .val { font-size: 1.3125rem; }
  html.js .atlas-panel .stamp-card .about { font-size: .9375rem; line-height: 1.45; }
  html.js .atlas-panel .atlas-count { padding: 6px 14px; font-size: .9375rem; }
}

/* FAQ on the home page */
.qa { max-width: 50rem; margin: 0 auto; }
.qa details { border-top: 1px solid var(--line-2); }
.qa details:last-of-type { border-bottom: 1px solid var(--line-2); }

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

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

.qa summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s;
}

.qa details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.qa details p { max-width: 44rem; padding: 0 4px 22px; color: var(--sub); font-size: 1.0625rem; line-height: 1.6; }
.qa .more { margin-top: 24px; color: var(--sub); text-align: center; }
.qa .more a { color: var(--gold); }

/* Final call to action */
.cta {
  text-align: center;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(226, 193, 124, .12), rgba(226, 193, 124, 0) 70%),
    var(--navy-900);
}

.cta .icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 26px;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

.cta .lead { margin: 0 auto 30px; }
.cta .badges { justify-content: center; }
.cta-note { margin-top: 18px; color: var(--muted); font-size: 1rem; }

.qr { display: none; }

@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  .qr {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
    padding: 14px 22px 14px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
    text-align: left;
  }

  .qr svg {
    width: 108px;
    height: 108px;
    padding: 8px;
    border-radius: 10px;
    background: #fff;
  }

  .qr p { max-width: 15rem; color: var(--sub); font-size: 1rem; line-height: 1.45; }
}

/* ---------- Footer ---------- */

.site-foot {
  padding: 44px 0 max(44px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--navy-950);
  color: var(--muted);
  font-size: 1rem;
}

.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.foot-brand img { width: 40px; height: 40px; border-radius: 10px; }
.foot-brand p { color: var(--sub); }
.foot-brand strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 26px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.foot-links a { display: inline-block; padding: 9px 0; color: var(--ink); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-links a[aria-current="page"] { color: var(--gold); }
.site-foot p { max-width: 48rem; margin: 6px 0; line-height: 1.55; }
.site-foot p a { color: var(--ink); }
.site-foot .tm { margin-top: 18px; color: #8C98B2; font-size: .875rem; }

/* ---------- Reading pages: Support and the legal pages, on a paper sheet ---------- */

.page {
  padding: 28px 0 88px;
  background: radial-gradient(80% 420px at 50% 0%, rgba(52, 92, 164, .28), rgba(52, 92, 164, 0) 80%), var(--navy-800);
}

.sheet {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(24px, 5.5vw, 60px);
  border-radius: 24px;
  background: var(--paper);
  color: var(--paper-ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  box-shadow: var(--shadow);
}

.sheet a { color: var(--paper-link); }
.sheet a:hover { color: var(--paper-ink); }
.sheet :focus-visible { outline-color: var(--paper-link); }
.sheet b, .sheet strong { font-weight: 700; }

.sheet h1 {
  margin: 0 0 10px;
  font-size: clamp(2.25rem, 1.75rem + 2.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.015em;
}

.sheet .updated { margin: 0 0 30px; color: var(--paper-sub); font-size: .9375rem; }
.sheet .intro { margin: 0 0 30px; font-size: 1.1875rem; }

.sheet h2 {
  margin: 48px 0 12px;
  font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem);
  line-height: 1.15;
  scroll-margin-top: calc(var(--head-h) + 16px);
}

.sheet h3 { margin: 26px 0 6px; font-family: var(--sans); font-size: 1.125rem; font-weight: 700; }
.sheet p { margin: 0 0 14px; }
.sheet p, .sheet ul, .sheet ol { max-width: 42rem; }
.sheet ul, .sheet ol { margin: 0 0 16px; padding-left: 1.4em; }
.sheet li { margin: 7px 0; }
.sheet li::marker { color: #8A6A22; }

.summary {
  margin: 4px 0 30px;
  padding: 20px 24px;
  border-left: 4px solid var(--app-gold);
  border-radius: 0 14px 14px 0;
  background: var(--paper-2);
}

.summary h2 { margin: 0 0 6px; font-size: 1.375rem; }
.summary ul { margin: 8px 0 0; padding-left: 20px; }

.toc {
  margin: 0 0 8px;
  padding: 16px 24px;
  border: 1px solid var(--paper-line);
  border-radius: 14px;
}

.toc p { margin: 0 0 6px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 22px; font-size: .96875rem; columns: 2; column-gap: 32px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }

@media (max-width: 560px) {
  .toc ol { columns: 1; }
}

@media (max-width: 480px) {
  .page .wrap {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .sheet { padding: 26px 20px 30px; border-radius: 18px; }
  .summary { padding: 18px 18px 18px 20px; }
  .toc { padding: 14px 18px; }
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sheet table { width: 100%; margin: 10px 0 8px; border-collapse: collapse; font-size: .96875rem; }

.sheet th,
.sheet td {
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--paper-line);
  text-align: left;
  vertical-align: top;
}

.sheet th { font-weight: 700; }

.sheet kbd {
  padding: 1px 7px;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  background: var(--paper-2);
  font-family: inherit;
  font-size: .9375rem;
}

.sheet ol.steps { list-style: none; padding: 0; counter-reset: step; }

.sheet ol.steps li {
  position: relative;
  min-height: 34px;
  margin: 12px 0;
  padding: 3px 0 0 50px;
  counter-increment: step;
}

.sheet ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--app);
  color: var(--app-gold);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1;
}

.faq { margin: 8px 0 40px; }
.faq details { padding: 4px 0; border-top: 1px solid var(--paper-line); }
.faq details:last-child { border-bottom: 1px solid var(--paper-line); }

.faq summary {
  position: relative;
  padding: 14px 36px 14px 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 9px;
  color: var(--paper-link);
  font-size: 1.5rem;
  font-weight: 400;
}

.faq details[open] summary::after { content: "\2212"; }
.faq details p, .faq details ol, .faq details ul { margin: 0 0 16px; }

.contact { padding: 22px 24px; border-radius: 16px; background: var(--paper-2); }
.contact h2 { margin: 0 0 6px; font-size: 1.5rem; }
.contact p { margin: 0; }
p, li, dd { text-wrap: pretty; }

/* 404 */
.lost { padding: clamp(72px, 12vw, 140px) 0; text-align: center; }
.lost h1 { margin-bottom: 16px; font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem); line-height: 1.05; }
.lost .lead { margin: 0 auto 30px; }
.lost .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-top: 26px; }
.lost .links a { color: var(--gold); }

/* ---------- Motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-head, .site-foot, .toc, .skip { display: none; }
  html, body, .page { background: #fff; }
  .sheet { max-width: none; padding: 0; border-radius: 0; box-shadow: none; }
}
