: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;
}

/* ---- Buttons ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn--sm {
  height: 2.3rem;
  padding-inline: 0.9rem;
  font-size: 0.875rem;
}
.btn--lg {
  height: 3.1rem;
  padding-inline: 1.6rem;
  font-size: 1rem;
}
/* Primary CTA uses a fixed vivid gold (not the palette gold, which goes muted
   on the light content), so it stays bright on the dark map and the white paper. */
.btn--primary {
  background: linear-gradient(180deg, #f0c33d, #d49e1f);
  color: #2a1d06;
  font-weight: 700;
  box-shadow: 0 14px 30px -12px rgba(212, 158, 31, 0.7);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #f6cf52, #dca828);
  transform: translateY(-1px);
  box-shadow: 0 20px 38px -14px rgba(212, 158, 31, 0.8);
}
.btn--soft {
  background: var(--gold-tint);
  color: var(--gold-soft);
  border-color: color-mix(in srgb, var(--gold) 40%, var(--line));
}
.btn--soft:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}
/* Secondary hero CTA: sits over the busy map, so it needs a solid-ish backing
   to stay legible instead of blending into the landmarks. */
.btn--ghost {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  box-shadow: 0 10px 26px -18px var(--shadow);
}
.btn--ghost:hover {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-color: var(--gold);
  color: var(--gold-soft);
}

/* ---- 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 GitHub button. */
.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;
  }
}
.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;
}
@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 phone preview is a dark device showing the dark app, so it keeps the
   dark palette even on the light page. */
.phone {
  color: var(--ink);
  --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);
}

/* 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);
}

/* ---- Themes showcase ---- */
.theme-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .theme-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.theme-card {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow:
    0 1px 2px var(--shadow),
    0 22px 48px -32px var(--shadow);
}
.theme-swatch {
  position: relative;
  height: 11rem;
  overflow: hidden;
}
.theme-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.theme-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem 1.3rem;
  background: var(--sw-surface);
  color: var(--sw-ink);
}
.theme-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--sw-ink);
}
.theme-note {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
  color: var(--sw-muted);
}
.theme-card--dark {
  --sw-bg: #16110c;
  --sw-surface: #221a12;
  --sw-ink: #f3ead9;
  --sw-muted: #a99b80;
  --sw-gold: #c9a227;
  --sw-edge: #16110c;
  --sw-ring: rgba(243, 234, 217, 0.1);
  --sw-line: rgba(243, 234, 217, 0.16);
}
.theme-card--light {
  --sw-bg: #f6efe2;
  --sw-surface: #fffaf0;
  --sw-ink: #2c2114;
  --sw-muted: #7a6a4c;
  --sw-gold: #9c7a16;
  --sw-edge: #e7dcc4;
  --sw-ring: rgba(44, 33, 20, 0.1);
  --sw-line: rgba(44, 33, 20, 0.16);
}
.theme-card--grey {
  --sw-bg: #1c1d1f;
  --sw-surface: #26282b;
  --sw-ink: #e8eaec;
  --sw-muted: #9aa0a6;
  --sw-gold: #c9a227;
  --sw-edge: #1c1d1f;
  --sw-ring: rgba(232, 234, 236, 0.1);
  --sw-line: rgba(232, 234, 236, 0.16);
}
.theme-card--dark .theme-swatch,
.theme-card--grey .theme-swatch {
  background: var(--sw-bg);
}
.theme-card--light .theme-swatch {
  background: var(--sw-bg);
}

/* ---- App preview (phone mockup) ---- */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .preview-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
  }
}
.preview-visual {
  display: grid;
  place-items: center;
}
.phone {
  width: 16rem;
  max-width: 80vw;
  border-radius: 2.2rem;
  background: #0c0905;
  padding: 0.55rem;
  box-shadow:
    0 40px 80px -36px var(--shadow),
    0 0 0 1px var(--line);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4.5rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  z-index: 3;
}
.phone-screen {
  position: relative;
  border-radius: 1.8rem;
  overflow: hidden;
  background: var(--bg);
  min-height: 30rem;
  display: flex;
  flex-direction: column;
}
.map-canvas {
  position: relative;
  flex: 1;
  min-height: 21rem;
  overflow: hidden;
  background: var(--bg);
}
.map-mini {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.place-card {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 1rem 1.15rem 1.2rem;
}
.place-card-kicker {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.place-card-title {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.place-card-body {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}
.preview-meta .plate-title {
  margin-top: 0.6rem;
}
.preview-meta .plate-lead {
  margin-top: 1rem;
}
.preview-list {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.preview-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 1rem;
  color: var(--ink-soft);
}
.preview-dot {
  flex: 0 0 auto;
  margin-top: 0.5rem;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-tint);
}
.preview-cta {
  margin-top: 2rem;
}

/* ---- 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;
}
.ea-inner {
  margin-top: 2.4rem;
}
.store-line {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.store-line-soon {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.store-line-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink-soft);
}
.store-line-item svg {
  color: var(--gold-soft);
}
.store-line-dot {
  color: var(--faint);
}
.ea-form {
  margin: 2rem auto 0;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.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);
}
.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-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;
}
.ea-fineprint {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--faint);
}
.ea-success {
  margin: 2rem auto 0;
  max-width: 28rem;
  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);
}
.ea-repos {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
}
/* 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;
}
