:root {
  --bg: #000000;
  --surface: #16181C;
  --surface-alt: #1E2126;
  --surface-alt-2: #273340;
  --text: #E7E9EA;
  --text-muted: #71767B;
  --border: #2F3336;
  --accent: #4DA6FF;
  --accent-ink: #000000;
  --accent-shadow: rgba(77,166,255,0.3);
  --green: #00BA7C;
  --gray: #71767B;
  --friends: #A78BFA;
  --gold: #FFC94D;
  --danger: #F4212E;
  --glass-bg: rgba(22,24,28,0.68);
  --glass-border: rgba(255,255,255,0.14);
  --glass-highlight: rgba(255,255,255,0.08);
  --r-pill: 999px;
  --r-xl: 20px;
  --r-lg: 16px;
  --r-md: 14px;
  --r-sm: 12px;
}

* { box-sizing: border-box; }

/* Material Symbols Outlined — the app's own icon system (no emoji anywhere
   in the product; see design/tokens.md section 7). Same recipe as the
   Flutter app's `.msi` span: outline weight, no fill, 24pt optical size. */
.msi {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: inherit;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  vertical-align: middle;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
/* Floating glass bar — the app's own glass-material recipe (see
   design/tokens.md section 5), used only for floating/overlay chrome. */
nav.topnav {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 0 16px;
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), inset 0 1px 0 var(--glass-highlight);
}
nav.topnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo .mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.navlinks {
  display: flex;
  gap: 28px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-muted);
}
.navlinks a:hover { color: var(--text); }
.navlinks { display: none; }
@media (min-width: 760px) { .navlinks { display: flex; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 22px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 16px var(--accent-shadow);
}
.btn-primary:hover { box-shadow: 0 6px 20px var(--accent-shadow); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--surface-alt); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(1100px 480px at 12% -10%, rgba(77,166,255,0.14), transparent 60%),
    radial-gradient(900px 460px at 100% 0%, rgba(255,201,77,0.10), transparent 55%);
}
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

h1.hero-title {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
  color: var(--text);
}
h1.hero-title .accent-text { color: var(--accent); }

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 480px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 700;
}
.store-badge strong { display: block; font-size: 14px; color: var(--text); font-weight: 800; }

/* Hero visual: a stylized phone with a check-in "stamp" moment */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  width: 280px;
  height: 560px;
  border-radius: 42px;
  background: #0B0D10;
  padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55), 0 10px 24px rgba(0,0,0,0.35);
  position: relative;
  border: 1px solid var(--border);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(180deg, #0E1A26 0%, var(--surface) 55%);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-status { height: 30px; }
.phone-header {
  padding: 8px 18px 14px;
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
}
.stamp-card {
  margin: 8px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  text-align: center;
}
.stamp-ring {
  width: 92px;
  height: 92px;
  margin: 4px auto 10px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-9deg);
  position: relative;
}
.stamp-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1.5px dashed var(--accent);
}
.stamp-ring .icon { font-size: 26px; }
.stamp-place { font-weight: 800; font-size: 15px; margin: 2px 0 2px; color: var(--text); }
.stamp-meta { font-size: 12px; color: var(--text-muted); font-weight: 700; }

.mini-row {
  margin: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px;
}
.mini-avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.mini-lines { flex: 1; min-width: 0; }
.mini-line { height: 8px; border-radius: 4px; background: var(--surface-alt-2); margin-bottom: 5px; }
.mini-line.short { width: 55%; }
.pill-tag {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.pill-green { background: rgba(0,186,124,0.18); color: var(--green); }
.pill-friends { background: rgba(167,139,250,0.18); color: var(--friends); }
.pill-gold { background: rgba(255,201,77,0.18); color: var(--gold); }

.float-badge {
  position: absolute;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 10px 14px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 16px 32px rgba(0,0,0,0.4), inset 0 1px 0 var(--glass-highlight);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.float-badge .n { font-size: 17px; }
.float-1 { top: 60px; left: -18px; }
.float-2 { bottom: 90px; right: -22px; }
@media (max-width: 899px) { .float-1, .float-2 { display: none; } }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.alt { background: var(--bg); }

.section-head { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow { margin-left: auto; margin-right: auto; }
h2.section-title {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  text-wrap: balance;
  color: var(--text);
}
.section-sub { font-size: 16.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card .icon-well {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 16px;
}
.card h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; color: var(--text); }
.card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; margin: 0; }

.well-accent { background: rgba(77,166,255,0.14); }
.well-green { background: rgba(0,186,124,0.14); }
.well-friends { background: rgba(167,139,250,0.14); }
.well-gold { background: rgba(255,201,77,0.14); }
.well-danger { background: rgba(244,33,46,0.14); }
.well-gray { background: rgba(113,118,123,0.18); }

/* Spotlight (alternating image/text rows) */
.spotlight { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; margin-bottom: 72px; }
.spotlight:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .spotlight { grid-template-columns: 1fr 1fr; gap: 64px; } }
.spotlight.reverse .spotlight-visual { order: 2; }
@media (min-width: 900px) { .spotlight.reverse .spotlight-text { order: 2; } }

.spotlight-text .eyebrow { margin-bottom: 16px; }
.spotlight-text h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 14px; color: var(--text); }
.spotlight-text p { font-size: 15.5px; color: var(--text-muted); line-height: 1.65; margin: 0 0 18px; }
.spotlight-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.spotlight-list li { display: flex; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.spotlight-list .check { color: var(--green); font-weight: 900; flex-shrink: 0; }

.visual-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
}

/* Passport spotlight — the one deliberately distinct dark/leather look,
   fixed regardless of the site's own theme (matches the app exactly). */
.passport-visual {
  background: #241D15;
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}
/* A continuously swiping stamp carousel — the content is duplicated once in
   the HTML so the loop from -50% back to 0 is seamless. Direction/timing
   echoes the app's own PageView passport carousel, just ambient instead of
   drag-driven since this is a marketing page, not the app itself. */
.passport-stamp-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.passport-stamp-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: passportSwipe 22s linear infinite;
}
@keyframes passportSwipe {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .passport-stamp-track { animation: none; }
}
.passport-stamp {
  background: #F7F2EB;
  background-image: repeating-linear-gradient(45deg, rgba(36,29,21,0.025) 0 1px, transparent 1px 6px);
  border-radius: 12px;
  width: 108px;
  aspect-ratio: 3/4;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  position: relative;
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}
.passport-stamp:nth-child(even) { transform: rotate(-3deg); }
.passport-stamp:nth-child(3n) { transform: rotate(2.5deg); }
.passport-stamp .ring {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2.5px solid #B75B3A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  position: relative;
}
.passport-stamp .ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed #B75B3A;
  opacity: 0.6;
}
.passport-stamp .country {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  font-size: 11.5px;
  color: #2A2420;
  text-align: center;
  line-height: 1.2;
}
.passport-stamp .verified {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #7A6F62;
  text-transform: uppercase;
}

/* Marketplace grid mini cards */
.mkt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mkt-card {
  background: var(--surface-alt-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}
.mkt-card .banner { height: 56px; border-radius: 10px; margin-bottom: 12px; }
.mkt-card h4 { font-size: 13.5px; font-weight: 800; margin: 0 0 4px; color: var(--text); }
.mkt-card .stars { color: var(--gold); font-size: 12px; }

/* Privacy spotlight — toggle rows */
.privacy-visual .prow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.privacy-visual .prow:last-child { border-bottom: none; }
.prow .plabel { font-weight: 700; font-size: 14px; color: var(--text); }
.seg { display: flex; background: var(--surface-alt-2); border-radius: var(--r-pill); padding: 3px; }
.seg span {
  width: 28px; height: 24px;
  border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--gray);
}
.seg span.on { background: rgba(255,255,255,0.1); color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.seg span.msi { font-size: 15px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #0B1F3A 0%, var(--accent) 100%);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  color: #fff;
  margin: 0 24px;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin: 0 0 14px; letter-spacing: -0.015em; }
.cta-band p { font-size: 16px; opacity: 0.85; margin: 0 0 30px; }
.cta-band .btn-primary { background: #fff; color: #0B1F3A; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.cta-band .store-badge { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.75); }
.cta-band .store-badge strong { color: #fff; }
.cta-band .hero-ctas, .cta-band .store-badges { justify-content: center; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 40px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.6; max-width: 320px; margin: 14px 0 0; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; font-weight: 600; color: var(--text); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--text); }
.legal .updated { color: var(--text-muted); font-size: 13.5px; margin: 0 0 40px; }
.legal h2 { font-size: 19px; font-weight: 800; margin: 40px 0 12px; color: var(--text); }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--text); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal a { color: var(--accent); font-weight: 700; }
.legal .note {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.support-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 12px; }
@media (min-width: 640px) { .support-grid { grid-template-columns: repeat(2, 1fr); } }
