/* Voymark landing — brand tokens mirrored from the app's Theme.swift.
   Light: aged passport paper. Dark: the same passport by lamplight.
   Keep hex values in lockstep with Theme.Palette. */

:root {
  --paper: #F6F1E6;
  --paper2: #EFE8D8;
  --card: #FFFDF7;
  --ink: #221C15;
  --ink2: #6E6455;
  --burgundy: #7A2333;
  --burgundy-deep: #5E1A27;
  --gold: #C29B3C;
  --stamp-blue: #2E4E8F;
  --line: #DCD2BC;

  --display: 'Marcellus', 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17140F;
    --paper2: #211C14;
    --card: #252017;
    --ink: #F0E9DB;
    --ink2: #A79B87;
    --burgundy: #A13A4E;
    --burgundy-deep: #7A2333;
    --gold: #D5B054;
    --stamp-blue: #6C8CD0;
    --line: #3A342A;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- Language switcher ---------- */

.langnav {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  display: flex;
  gap: 12px;
}

.langnav a {
  color: var(--ink2);
  text-decoration: none;
  text-transform: uppercase;
}

.langnav a:hover { color: var(--burgundy); }

.langnav a.current {
  color: var(--burgundy);
  font-weight: 600;
  border-bottom: 1.5px solid var(--burgundy);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 88px 24px 48px;
  max-width: 720px;
  margin: 0 auto;
}

.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 114px;
  border: 2.5px solid var(--burgundy);
  border-radius: 50%;
  transform: rotate(-6deg);
  color: var(--burgundy);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 0.92;
  margin-bottom: 36px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.lede {
  color: var(--ink2);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 32px;
}

.cta { margin-bottom: 48px; }

.badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--burgundy);
  color: var(--paper);
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 22px;
  line-height: 1.25;
}
.badge-small { font-size: 0.7rem; font-family: var(--mono); opacity: 0.85; }
.badge-large { font-family: var(--display); font-size: 1.4rem; }
.badge-disabled { cursor: default; }

.mrz {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink2);
  border-top: 1.5px solid var(--ink);
  background: var(--paper2);
  padding: 10px 14px;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- Bands ---------- */

.band {
  padding: 64px 24px;
  max-width: 980px;
  margin: 0 auto;
}

.band-alt { background: var(--paper2); max-width: none; }
.band-alt > * { max-width: 980px; margin-left: auto; margin-right: auto; }

.band h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 28px;
  text-align: center;
}

/* Fixed column counts that divide each section's card count, so every
   row is full at every width (Florentin, 2026-07-29): the 6-card maps
   section is 3 columns (grid-3), the 4-card section 2 — both collapse
   to 2 columns on tablets (3 and 2 full rows) and 1 on phones. */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .grid, .grid-3 { grid-template-columns: 1fr; }
}

.grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.grid h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.grid h3 small {
  font-family: var(--mono);
  font-size: 0.66em;
  color: var(--ink2);
  letter-spacing: 0.06em;
}

.grid p { color: var(--ink2); font-size: 0.95rem; }

.wide {
  text-align: center;
  color: var(--ink2);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.langs { font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.04em; }

/* ---------- Privacy ---------- */

.band-privacy { max-width: 720px; }

.privacy-list { list-style: none; }

.privacy-list li {
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--ink2);
  position: relative;
}
.privacy-list li::before {
  content: '✔';
  position: absolute;
  left: 4px;
  color: var(--burgundy);
}
.privacy-list strong { color: var(--ink); }

/* ---------- Subpages (legal + explore) ---------- */

.hero-sub {
  padding: 72px 24px 24px;
}

.hero-sub h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
}

.homelink { text-decoration: none; display: inline-block; }

.stamp-small {
  width: 92px;
  height: 80px;
  font-size: 10px;
  border-width: 2px;
  margin-bottom: 24px;
}

.prose {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 18px;
}

.prose h2 {
  text-align: left;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.prose p { color: var(--ink2); }
.prose p + p { margin-top: 12px; }
.prose strong { color: var(--ink); }

/* ---------- App screenshots ---------- */

.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.shot { margin: 0; }

.shot img {
  display: block;
  width: min(300px, 78vw);
  height: auto;
  border: 10px solid #1c1917;
  border-radius: 34px;
  box-shadow: 0 18px 40px rgba(34, 28, 21, 0.22);
  background: #1c1917;
}

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

footer {
  text-align: center;
  padding: 56px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--ink2);
  font-size: 0.85rem;
}

footer .tagline {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--burgundy);
  margin-bottom: 10px;
}

.footnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 0.8rem;
}

.footnav a { color: var(--ink2); text-decoration: none; }
.footnav a:hover { color: var(--burgundy); text-decoration: underline; }
