: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 {
  position: relative;
  overflow: hidden;
  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 { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }

/* Ambient route motif — a winding road drifting through the hero, with
   waypoint dots that pulse as a traveling marker passes each one. Purely
   decorative background texture, kept faint so it never competes with the
   actual hero copy/visual sitting above it. */
.route-bg {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 360px;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  pointer-events: none;
}
.route-bg .road {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 2;
  stroke-dasharray: 1 14;
  stroke-linecap: round;
}
.route-bg .waypoint {
  fill: var(--accent);
  opacity: 0.55;
  animation: routePulse 3.2s ease-in-out infinite;
}
.route-bg .waypoint:nth-child(3) { animation-delay: 0.6s; }
.route-bg .waypoint:nth-child(4) { animation-delay: 1.2s; }
.route-bg .waypoint:nth-child(5) { animation-delay: 1.8s; }
.route-bg .waypoint:nth-child(6) { animation-delay: 2.4s; }
@keyframes routePulse {
  0%, 100% { opacity: 0.4; r: 3.5; }
  50% { opacity: 1; r: 5.5; }
}
.route-bg .traveler {
  fill: var(--accent);
  filter: drop-shadow(0 0 5px rgba(77, 166, 255, 0.85));
  offset-path: path("M -40 340 C 160 220, 340 460, 560 260 S 900 160, 1180 320");
  offset-rotate: 0deg;
  animation: travel 14s linear infinite;
}
@keyframes travel {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .route-bg .waypoint, .route-bg .traveler { animation: none; }
}
@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: 12px; }
.store-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  min-width: 140px;
  box-sizing: border-box;
  background: #000;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 9px;
  padding: 0 14px;
  color: #fff;
  opacity: 0.55;
  filter: grayscale(1);
  cursor: default;
}
.store-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-badge .store-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge .store-eyebrow { font-size: 9px; font-weight: 500; letter-spacing: 0.01em; color: rgba(255,255,255,0.75); }
.store-badge .store-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }

/* 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;
  z-index: 2;
  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; }
.cta-float-1 { top: 22px; left: 28px; }
.cta-float-2 { bottom: 22px; right: 28px; }
@media (max-width: 899px) { .float-1, .float-2, .cta-float-1, .cta-float-2 { display: none; } }

/* ---------- Sections ---------- */
section { padding: 88px 0; }

/* Ambient waypoint constellation — faint drifting/twinkling dots fixed
   behind the whole page (canvas-driven, see constellation.js). Sections
   deliberately paint no background of their own so it shows through
   everywhere while scrolling, not just in the hero. */
#constellation-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

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

/* Trip blogs — a small-card horizontal strip that auto-scrolls (see
   blogs.js), not a static grid — the next card's edge peeking into view
   tells a visitor there's more to see, same idea as the app's own photo
   strips. */
.blog-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 4px 8px;
  margin: 0 -4px;
}
.blog-strip::-webkit-scrollbar { display: none; }
.blog-card {
  flex: 0 0 260px;
  width: 260px;
  display: block;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.blog-card-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.blog-card-cover-fallback { background: linear-gradient(135deg, var(--accent), var(--gold)); }
.blog-card-body { padding: 16px; }
.blog-card-location { font-weight: 800; font-size: 10px; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; margin-bottom: 6px; }
.blog-card-body h3 { font-size: 15.5px; font-weight: 800; margin: 0 0 6px; color: var(--text); line-height: 1.3; }
.blog-card-body p {
  font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.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-visual { display: flex; justify-content: center; }
.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;
}
/* 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; }

/* Community spotlight — a small feed preview */
.feed-card { display: flex; flex-direction: column; gap: 12px; }
.feed-card + .feed-card { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.feed-head { display: flex; align-items: center; gap: 10px; }
.feed-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; }
.feed-name { font-weight: 700; font-size: 13.5px; color: var(--text); }
.feed-time { font-size: 11.5px; color: var(--text-muted); }
.feed-caption { font-size: 13.5px; color: var(--text); line-height: 1.45; }
.feed-stats { display: flex; align-items: center; gap: 14px; }
.feed-stat { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); font-weight: 700; }
.feed-stat .msi { font-size: 15px; }
.vis-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: var(--r-pill); margin-left: auto; }
.vis-pill .msi { 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 — a glass card (not a solid color block) so it reads as part of
   the same dark, muted system as every other section instead of standing
   out as the one saturated slab on the page. */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  padding: 64px 40px;
  text-align: center;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35), inset 0 1px 0 var(--glass-highlight);
  margin: 0 24px;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 320px at 50% -15%, rgba(77,166,255,0.16), transparent 65%);
  pointer-events: none;
}
.cta-band h2, .cta-band p, .cta-band .store-badges, .cta-band .waitlist-form, .cta-band .waitlist-status { position: relative; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin: 0 0 14px; letter-spacing: -0.015em; color: var(--text); }
.cta-band p { font-size: 16px; color: var(--text-muted); margin: 0 0 24px; }
.cta-band .hero-ctas, .cta-band .store-badges { justify-content: center; }

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
}
.waitlist-form input[type="email"]::placeholder { color: var(--text-muted); }
.waitlist-form input[type="email"]:focus { outline: none; border-color: var(--accent); }
.waitlist-form button { flex-shrink: 0; }
.waitlist-status {
  min-height: 20px;
  font-size: 13.5px;
  font-weight: 700;
  margin: 12px 0 28px;
}
.waitlist-status.success { color: var(--green); }
.waitlist-status.error { color: var(--danger); }
@media (max-width: 480px) {
  .waitlist-form { flex-direction: column; }
  /* flex:1's flex-basis:0% applies along whichever axis is "main" — once
     flex-direction flips to column that's height, not width, silently
     overriding the input's explicit height:46px and stretching it to fill
     the whole card. flex:none reverts flex-basis to auto so the real
     height rule governs again. */
  .waitlist-form input[type="email"] { flex: none; width: 100%; }
  .waitlist-form button { width: 100%; }
}

/* Newsletter — a modest bar, not the big centered hero card the old
   pre-launch waitlist card used to be (the app's live now, this is just an
   ongoing "stay updated" signup). */
.newsletter-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
}
.newsletter-text h3 { font-size: 19px; font-weight: 800; margin: 0 0 4px; color: var(--text); }
.newsletter-text p { font-size: 14px; color: var(--text-muted); margin: 0; }
.newsletter-band .waitlist-form { max-width: 380px; margin: 0; flex: 1 1 320px; }
#newsletter .waitlist-status { margin: 12px 0 0; }
@media (max-width: 700px) {
  .newsletter-band { flex-direction: column; align-items: stretch; text-align: center; }
  /* Same flex-basis/main-axis-swap issue as .waitlist-form above: 320px was
     meant as a row-layout min-width, but column direction reads it as a
     min-height instead, reserving ~320px of blank vertical space. */
  .newsletter-band .waitlist-form { flex: none; max-width: none; }
}

/* ---------- 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; }
.footer-brand { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0; white-space: nowrap; }
@media (max-width: 700px) { .footer-brand p { white-space: normal; } }
.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); } }
