:root {
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Fraunces", "Inter", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 72rem;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Themes: dark (default) + light parchment, mirroring the app ---- */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16110c;
  --surface: #221a12;
  --surface-2: #2c2216;
  --ink: #f3ead9;
  --ink-soft: #d8c7ab;
  --muted: #a99b80;
  --faint: #7e7158;
  --gold: #c9a227;
  --gold-soft: #e0c468;
  --gold-tint: rgba(201, 162, 39, 0.12);
  --line: rgba(243, 234, 217, 0.12);
  --shadow: rgba(0, 0, 0, 0.5);
  --bg-deep: #100b07; /* deeper warm tone for the content sections below the hero */
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f1e7d4;
  --surface: #fffaf0;
  --surface-2: #f7eeda;
  --ink: #2c2114;
  --ink-soft: #564326;
  --muted: #7a6a4c;
  --faint: #a4926c;
  --gold: #9c7a16;
  --gold-soft: #b8932a;
  --gold-tint: rgba(156, 122, 22, 0.12);
  --line: rgba(44, 33, 20, 0.12);
  --shadow: rgba(44, 33, 20, 0.18);
  --bg-deep: #e9dcc1; /* deeper parchment for the content sections below the hero */
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  /* a faint paper grain over the warm base for a printed, material feel */
  background-image:
    linear-gradient(
      0deg,
      color-mix(in srgb, var(--bg) 93%, transparent),
      color-mix(in srgb, var(--bg) 93%, transparent)
    ),
    var(--grain);
  background-size:
    auto,
    200px 200px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition:
    background-color 0.4s var(--ease),
    color 0.4s var(--ease);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

::selection {
  background: var(--gold-tint);
  color: var(--gold-soft);
}
a {
  color: inherit;
  text-decoration: none;
}
/* The hidden attribute must always win over component display rules. */
[hidden] {
  display: none !important;
}

/* ---- Utilities ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.rule {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow:
    0 1px 2px var(--shadow),
    0 22px 48px -32px var(--shadow);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.focus-ring {
  outline: none;
}
.focus-ring:focus-visible {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--gold);
  border-radius: 0.5rem;
}

/* ---- Header ---- */
.site-header {
  position: relative;
  z-index: 10;
  margin-inline: auto;
  max-width: var(--maxw);
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 1.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}
.logo-mark {
  display: grid;
  place-items: center;
  height: 2rem;
  width: 2rem;
  border-radius: 0.6rem;
  background: var(--gold-tint);
  color: var(--gold);
  border: 1px solid var(--line);
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-word {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
/* The old hero line lives on as the logo tagline. Hidden on phones, where the
   header has no room next to the theme toggle and the App Store badge. */
.logo-tagline {
  display: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
}
.logo-tagline-accent {
  color: var(--gold);
  font-style: italic;
}
@media (min-width: 640px) {
  .logo-tagline {
    display: block;
  }
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-link {
  display: none;
  border-radius: 0.5rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav-link:hover {
  color: var(--gold-soft);
}
@media (min-width: 768px) {
  .nav-link {
    display: block;
  }
}
/* Apple's official "Download on the App Store" badge, used unmodified as the
   guidelines require. Everything below the hero sits on light paper and takes
   the black badge; the header follows the page theme, so it carries both
   variants and swaps them on [data-theme]. */
.store-badge {
  display: inline-block;
  border-radius: 0.5rem;
  transition:
    transform 0.2s var(--ease),
    opacity 0.2s var(--ease);
}
.store-badge:hover {
  transform: translateY(-1px);
  opacity: 0.86;
}
.store-badge img {
  display: block;
  height: 3.4rem;
  width: auto;
}
.store-badge--nav img {
  height: 2.5rem;
}
/* These have to out-specify `.store-badge img` above, hence the descendant
   selector: a bare `.store-badge-on-dark` loses to it and both badges show. */
.store-badge .store-badge-on-dark {
  display: none;
}
[data-theme="dark"] .store-badge .store-badge-on-light {
  display: none;
}
[data-theme="dark"] .store-badge .store-badge-on-dark {
  display: block;
}
/* Google's "Get it on Google Play" badge, also unmodified. Google ships it in
   black only, with a grey keyline that holds up on the dark header too. A phone
   header has room for one badge: the visitor's own store, App Store when the
   platform is unknown. data-platform is set in the <head> script. */
@media (max-width: 559px) {
  .store-badge--nav.store-badge--play,
  [data-platform="android"] .store-badge--nav.store-badge--apple {
    display: none;
  }
  [data-platform="android"] .store-badge--nav.store-badge--play {
    display: inline-block;
  }
}
.theme-toggle {
  display: grid;
  place-items: center;
  height: 2.3rem;
  width: 2.3rem;
  margin-inline: 0.2rem;
  border-radius: 0.6rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.theme-toggle:hover {
  color: var(--gold-soft);
  border-color: var(--gold);
}
.theme-icon {
  display: block;
}
[data-theme="dark"] .theme-icon--sun {
  display: none;
}
[data-theme="light"] .theme-icon--moon {
  display: none;
}

/* ---- Footer ---- */
.site-footer {
  position: relative;
  z-index: 10;
  margin-inline: auto;
  max-width: var(--maxw);
  padding: 1rem 1.5rem 2.5rem;
}
.site-footer .rule {
  margin-bottom: 1.5rem;
}
.footer-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-link {
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.footer-link:hover {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--faint);
}
@media (min-width: 640px) {
  .footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---- Scroll-reveal ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100dvh - 4.5rem);
  padding: 4rem 1.5rem;
}
.vintage-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* keep the Berlin map clearly visible: only a gentle edge vignette */
  background: radial-gradient(
    ellipse 84% 82% at 50% 46%,
    color-mix(in srgb, var(--bg) 0%, transparent) 38%,
    color-mix(in srgb, var(--bg) 36%, transparent) 68%,
    color-mix(in srgb, var(--bg) 76%, transparent) 100%
  );
}
/* On phones the column is full-width, so veil the edges a touch more - but the
   map still reads. The scrim behind the text does the heavy lifting. */
@media (max-width: 640px) {
  .hero-veil {
    background: radial-gradient(
      ellipse 110% 78% at 50% 44%,
      color-mix(in srgb, var(--bg) 0%, transparent) 24%,
      color-mix(in srgb, var(--bg) 44%, transparent) 60%,
      color-mix(in srgb, var(--bg) 82%, transparent) 100%
    );
  }
}
/* Lede: the intro line now lives in its own clean section below the hero (no
   map behind it), typed out like a typewriter with a blinking gold caret.
   Height is reserved so the content below doesn't jump while the line grows. */
.section--lede {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  text-align: center;
}
.lede {
  margin: 0 auto;
  max-width: 44rem;
  min-height: 7.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  text-wrap: balance;
}
.type-caret {
  display: inline-block;
  width: 0.06em;
  height: 0.95em;
  margin-left: 0.08em;
  vertical-align: -0.12em;
  background: var(--gold);
  border-radius: 1px;
  animation: caret-blink 1.05s steps(1) infinite;
}
.lede.is-typed .type-caret {
  opacity: 0;
  animation: none;
}
@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

/* With the hero copy gone, these rails are the only hint that the page
   continues below the map - one on each side, vertical "SCROLL" plus a long
   down arrow, with a pulsing gold border so the eye can't miss them. */
.scroll-rail {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 0.75rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  color: var(--gold-soft);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: rail-border 2.6s var(--ease) infinite;
  transition: color 0.2s var(--ease);
}
.scroll-rail--left {
  left: 1.25rem;
}
.scroll-rail--right {
  right: 1.25rem;
}
.scroll-rail:hover {
  color: var(--gold);
}
.scroll-rail-word {
  writing-mode: vertical-rl;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.35em;
}
.scroll-rail svg {
  animation: bob 2.6s var(--ease) infinite;
}
@media (max-width: 640px) {
  .scroll-rail {
    padding: 0.9rem 0.55rem;
  }
  .scroll-rail--left {
    left: 0.6rem;
  }
  .scroll-rail--right {
    right: 0.6rem;
  }
}
@keyframes rail-border {
  0%,
  100% {
    border-color: color-mix(in srgb, var(--gold) 35%, var(--line));
    box-shadow: 0 0 0 0 transparent;
  }
  50% {
    border-color: var(--gold);
    box-shadow: 0 0 22px -6px var(--gold);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* ---- Shared section scaffolding ---- */
.section {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 3.5rem 1.5rem;
}
@media (min-width: 768px) {
  .section {
    padding: 5rem 1.5rem;
  }
}

/* The hero stays on the warm dark map; everything below it is a clean light
   "paper" area, so the content sections read crisp regardless of the page
   theme. These overrides re-point the design tokens to a light palette for the
   content subtree only. */
.section,
.site-footer {
  color-scheme: light;
  color: var(--ink);
  --bg: #ffffff;
  --bg-deep: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f2ec;
  --ink: #1b1610;
  --ink-soft: #4a4133;
  --muted: #6f6657;
  --faint: #9a8f7d;
  --gold: #9a7714;
  --gold-soft: #b8932a;
  --gold-tint: rgba(154, 119, 20, 0.1);
  --line: rgba(27, 22, 16, 0.12);
  --shadow: rgba(27, 22, 16, 0.14);
}
/* The manifesto and the closing invite get a soft warm wash and hairline rules
   top and bottom, so they read as chapter spotlights on the light paper. */
.section--manifesto,
.section--invite {
  --bg-deep: #f7f1e6;
}
/* The lede sits on the same sandy parchment as the hero map (placed after the
   content palette so it wins over the white --bg-deep), reading as a
   continuation of the hero rather than the white paper below. */
.section--lede {
  --bg-deep: #f1e7d4;
}
.section::before,
.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(
      0deg,
      color-mix(in srgb, var(--bg-deep) 93%, transparent),
      color-mix(in srgb, var(--bg-deep) 93%, transparent)
    ),
    var(--grain);
  background-size:
    auto,
    200px 200px;
}
.section--manifesto::before,
.section--invite::before {
  background-image:
    radial-gradient(120% 90% at 50% 0%, var(--gold-tint), transparent 62%),
    linear-gradient(
      0deg,
      color-mix(in srgb, var(--bg-deep) 93%, transparent),
      color-mix(in srgb, var(--bg-deep) 93%, transparent)
    ),
    var(--grain);
  background-size:
    auto,
    auto,
    200px 200px;
  border-block: 1px solid var(--line);
}

/* ---- Plate header (atlas-style section heading) ---- */
.plate {
  position: relative;
  max-width: 44rem;
}
.plate-no {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.7;
  font-feature-settings: "onum" 1;
}
.section--manifesto .plate-no {
  margin-bottom: 1.6rem;
}
.plate-head {
  position: relative;
}
.plate .plate-no {
  position: absolute;
  top: 0.35rem;
  right: 0;
}
.plate-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.plate-label::before {
  content: "";
  width: 1.7rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.plate-title {
  margin-top: 1.1rem;
  font-size: clamp(1.85rem, 4.4vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.07;
}
.plate-lead {
  margin-top: 1.1rem;
  max-width: 40rem;
  font-size: 1.12rem;
  line-height: 1.72;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---- Manifesto ---- */
.section--manifesto {
  padding-block: 4.5rem;
}
@media (min-width: 768px) {
  .section--manifesto {
    padding-block: 6.5rem;
  }
}
.manifesto {
  margin: 0;
  max-width: 52rem;
}
.manifesto-quote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.8vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
}
.manifesto-quote em {
  font-style: italic;
  color: var(--gold);
}
.manifesto-by {
  margin-top: 1.8rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.manifesto-by::before {
  content: "";
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  margin-right: 0.9rem;
  vertical-align: middle;
  background: var(--gold);
  opacity: 0.6;
}

/* ---- How it works (numbered flow) ---- */
.flow {
  list-style: none;
  margin: 3.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}
.flow-step {
  position: relative;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
  .flow-step {
    padding: 2.4rem 2rem 0 0;
  }
  .flow-step + .flow-step {
    padding-left: 2rem;
    border-left: 1px solid var(--line);
  }
}
.flow-no {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.flow-title {
  margin-top: 0.9rem;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.flow-body {
  margin-top: 0.7rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---- What's inside (editorial index) ---- */
.index-list {
  list-style: none;
  margin: 3.25rem 0 0;
  padding: 0;
}
.index-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
  transition: background-color 0.3s var(--ease);
}
.index-item:last-child {
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .index-item {
    grid-template-columns: 5rem 1fr;
    gap: 2.5rem;
    padding: 2rem 0.75rem;
  }
  .index-item:hover {
    background: color-mix(in srgb, var(--gold) 5%, transparent);
  }
}
.index-no {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.85;
  font-feature-settings: "onum" 1;
}
.index-name {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}
.index-body {
  margin-top: 0.55rem;
  max-width: 44rem;
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--muted);
}
.index-foot {
  margin: 2.2rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--faint);
}

/* ---- Screens: a snap rail of real device captures ---- */
.shots {
  margin-top: 3rem;
}
.shot-rail {
  list-style: none;
  margin: 0 -1.5rem;
  /* the bottom padding leaves room for the scrollbar without clipping shadows */
  padding: 0.5rem 1.5rem 1.75rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 14rem;
  gap: 1.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--faint) transparent;
}
@media (min-width: 768px) {
  .shot-rail {
    grid-auto-columns: 14.25rem;
    gap: 2.25rem;
  }
}
/* The rail is wider than the column, so fade the right edge: it is the only
   honest signal that there are more screens past the last visible one. */
@supports (mask-image: linear-gradient(#000, #000)) {
  @media (min-width: 768px) {
    .shot-rail {
      mask-image: linear-gradient(to right, #000 calc(100% - 4.5rem), transparent);
    }
  }
}
.shot-rail::-webkit-scrollbar {
  height: 6px;
}
.shot-rail::-webkit-scrollbar-thumb {
  border-radius: 9999px;
  background: color-mix(in srgb, var(--faint) 60%, transparent);
}
.shot {
  scroll-snap-align: center;
}
.shot-figure {
  margin: 0;
}
/* The device body: a dark bezel so the app's own black status bar reads as
   screen rather than as a hole in the page. */
.shot-phone {
  border-radius: 2rem;
  background: #0c0905;
  padding: 0.4rem;
  box-shadow:
    0 30px 55px -30px var(--shadow),
    0 0 0 1px var(--line);
  transition: transform 0.4s var(--ease);
}
.shot-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.65rem;
}
@media (hover: hover) and (min-width: 768px) {
  .shot-figure:hover .shot-phone {
    transform: translateY(-6px);
  }
}
.shot-caption {
  margin-top: 1.1rem;
}
.shot-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.shot-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---- Figures (what ships inside the download) ---- */
.figures {
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1.5rem;
}
@media (min-width: 768px) {
  .figures {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2.5rem;
  }
}
.figure {
  padding: 1.6rem 0 1.7rem;
  border-top: 1px solid var(--line);
}
.figure-no {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
  font-feature-settings: "onum" 1;
}
.figure-label {
  /* dd carries a browser indent that would break the column edge */
  margin: 0.65rem 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
}
/* ---- Early access (closing invitation) ---- */
.section--invite {
  position: relative;
}
.invite {
  position: relative;
  max-width: 38rem;
  margin-inline: auto;
  text-align: center;
}
.invite .plate-no {
  display: inline-block;
  margin-bottom: 1.4rem;
}
.invite-head {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.invite-title {
  margin-top: 1.1rem;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.07;
}
.invite-lead {
  margin-top: 1.1rem;
  font-size: 1.12rem;
  line-height: 1.72;
  color: var(--muted);
  text-wrap: pretty;
}
/* Primary download block: both store badges and one line of requirements. */
.store-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
/* An Android visitor sees their store first. */
[data-platform="android"] .store-badges .store-badge--play {
  order: -1;
}
.store-cta-note {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--faint);
}

/* ---- Contact / bug report ---- */
/* Sits on plain white paper so it reads as its own chapter after the warm
   closing download section. */
.section--contact {
  --bg-deep: #ffffff;
}
.contact-form {
  margin: 2rem auto 0;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  text-align: left;
}
/* Honeypot: present in the DOM for bots, off-screen for humans (not display:none). */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.topic {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.topic-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
/* The radio itself is only there for semantics and keyboard use; the label
   text is the visible control, so focus has to be forwarded onto it. */
.topic-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.topic-option span {
  display: inline-flex;
  align-items: center;
  height: 2.6rem;
  padding-inline: 1.1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.topic-option span:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
}
.topic-option input:checked + span {
  border-color: var(--gold);
  background: var(--gold-tint);
  color: var(--ink);
}
.topic-option input:focus-visible + span {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-tint);
}
.ea-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 560px) {
  .ea-fields {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.field-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0;
}
.field-input {
  height: 2.85rem;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding-inline: 0.9rem;
  color: var(--ink);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.field-textarea {
  height: auto;
  min-height: 9.5rem;
  padding: 0.75rem 0.9rem;
  line-height: 1.6;
  resize: vertical;
}
.field-input::placeholder {
  color: var(--faint);
}
.field-input:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-tint);
  outline: none;
}
.field-input.is-invalid {
  border-color: #d8703f;
}
.field-error {
  min-height: 1rem;
  margin: 0;
  font-size: 0.85rem;
  color: #d8703f;
}
/* Solid ink, not gold: the App Store badge above is the page's one gold CTA and
   this must not compete with it. */
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.1rem;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    opacity 0.2s var(--ease);
}
.contact-submit:hover {
  background: color-mix(in srgb, var(--ink) 88%, var(--gold));
  transform: translateY(-1px);
}
.contact-submit:active {
  transform: scale(0.99);
}
.contact-submit[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}
.ea-fineprint {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--faint);
}
.ea-success {
  margin: 2rem auto 0;
  max-width: 32rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border-radius: 1rem;
  border: 1px solid var(--gold);
  background: var(--gold-tint);
  padding: 1.1rem;
  text-align: left;
}
.ea-success svg {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  color: var(--gold-soft);
}
.ea-success p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
/* Server- and network-level failures: they belong to the whole form, not to a
   single field, so they sit right above the button. */
.form-error {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: #d8703f;
}
.form-error:empty {
  display: none;
}

/* --- images while they load ------------------------------------------------
   An image is an empty frame until its bytes arrive. Until then the <img>
   itself carries a moving band mixed from the text colour, so it reads the
   same in both themes; the picture covers it when it paints, and app.js adds
   .is-loaded so the animation stops and nothing shows through a transparent
   file. SVG badges are tiny and inline-cheap, so they are left out. The box is
   already sized by width and height, so nothing moves. */
img:not([src$=".svg"]):not(.is-loaded) {
  background-color: color-mix(in srgb, var(--ink) 5%, var(--bg));
  background-image: linear-gradient(
    100deg,
    transparent 30%,
    color-mix(in srgb, var(--ink) 16%, transparent) 50%,
    transparent 70%
  );
  background-size: 250% 100%;
  background-repeat: no-repeat;
  animation: img-shimmer 1.6s ease-in-out infinite;
}
@keyframes img-shimmer {
  from {
    background-position: 125% 0;
  }
  to {
    background-position: -125% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  img:not([src$=".svg"]):not(.is-loaded) {
    background-image: none;
    animation: none;
  }
}
