/* Trvlrr — trvlrr.app
   Night indigo, cream and peach, with real photography carrying the colour.
   Type: Newsreader (display), Manrope (body), IBM Plex Mono (passport code). */

/* Fonts are served from this origin (latin subsets of the Google Fonts files), so the
   first paint waits on no third-party host. The two the page opens with are preloaded. */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/manrope.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/manrope.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/manrope.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/manrope.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/newsreader-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/newsreader.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/newsreader.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --peach: #f4c39a;
  --rose: #d98a91;
  --violet: #7a5aa5;
  --indigo: #2c2a63;
  --ink: #1a1740;
  --night: #0f1230;
  --cream: #fff3e4;
  --cream-72: rgba(255, 243, 228, 0.72);
  --cream-25: rgba(255, 243, 228, 0.25);
  --teal: #0c788f;
  --paper: #fbf7f1;
  --paper-2: #f2ebe1;
  --text: #221d3d;
  --muted: #6b6485;
  --line: rgba(34, 29, 61, 0.12);
  --max: 1180px;
  --radius: 24px;
  --display: "Newsreader", "Iowan Old Style", "Palatino", Georgia, serif;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
/* iOS Safari ignores overflow on html/body for rubber-banding: the page itself is
   the clipping box, and the body only pans vertically (the poster strip opts back in). */
.page { position: relative; width: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--night); color: var(--text); font-family: var(--body);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; touch-action: pan-y pinch-zoom;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(46px, 7.4vw, 96px); line-height: 0.96; }
h2 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.02; }
h3 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.12; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 800; color: var(--teal); }
.lede { font-size: clamp(18px, 1.55vw, 21px); color: var(--muted); max-width: 32em; }

/* ---------- Motion primitives (visible at rest; motion is additive) ---------- */
.rise { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .rise.in { opacity: 1; transform: none; }
  .js .rise:nth-child(2) { transition-delay: 0.08s; }
  .js .rise:nth-child(3) { transition-delay: 0.16s; }
  .js .rise:nth-child(4) { transition-delay: 0.24s; }
}

/* Hero entrance: pure CSS, plays on load, never waits on scroll detection */
.enter { animation: enter 1s var(--ease) both; }
.enter:nth-child(2) { animation-delay: 0.15s; }
.enter:nth-child(3) { animation-delay: 0.3s; }
@keyframes enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; transition: background 0.3s ease;
}
.nav.solid { background: rgba(15, 18, 48, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { font-family: var(--display); font-size: 28px; color: var(--cream); letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--cream-72); font-size: 15px; font-weight: 700; }
.nav-links a:hover { color: var(--cream); }
/* `.nav-links a` out-specifies `.btn`, so without this the one button in the bar drew
   its label in cream at 72% on peach — about 1.2:1, which is no contrast at all. */
.nav-links a.btn { color: var(--ink); }
.nav-links a.btn:hover { color: var(--ink); }
/* Signing in is a different errand from installing, so it reads as its own control
   rather than as one more anchor among the section links. */
.nav-links a.signin {
  border: 1px solid var(--cream-25); border-radius: 999px; padding: 8px 16px;
  color: var(--cream); transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-links a.signin:hover { border-color: var(--cream-72); background: rgba(255, 243, 228, 0.08); }

/* The menu button, shown only once the row no longer fits. Its three bars fold into a
   cross when the menu is open, so the control says what it will do next. */
.navtoggle {
  /* Safari on iOS paints a native button — an opaque white rounded rect — unless the
     appearance is reset, and cream bars on white are no bars at all. */
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; width: 42px; height: 42px; padding: 0; cursor: pointer; color: inherit;
  background: rgba(255, 243, 228, 0.08); border: 1px solid var(--cream-25); border-radius: 12px;
}
.navtoggle span {
  display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--cream);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px;
  font-weight: 800; font-size: 16px; background: var(--peach); color: var(--ink); border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease;
  box-shadow: 0 10px 30px rgba(244, 195, 154, 0.25);
}
.btn:hover { transform: translateY(-2px) scale(1.02); color: var(--ink); background: #ffd4b3; box-shadow: 0 16px 36px rgba(244, 195, 154, 0.35); }
.btn svg { width: 18px; height: 18px; }
/* Not a link yet: the App Store page does not exist, so this says so and does not
   pretend to be pressable — no lift on hover, no pointer cursor. */
.btn-ghost { background: rgba(255, 243, 228, 0.1); color: var(--cream); border-color: var(--cream-25); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 243, 228, 0.18); color: var(--cream); box-shadow: none; }
.nav .btn { padding: 11px 18px; font-size: 14px; box-shadow: none; }

/* ---------- Hero: slideshow of places ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--cream); overflow: hidden; background: var(--night); }
.slides { position: absolute; inset: 0; }
.slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  animation: slide 24s infinite; transform-origin: 50% 40%;
}
.slides img:nth-child(1) { animation-delay: 0s; }
.slides img:nth-child(2) { animation-delay: 6s; }
.slides img:nth-child(3) { animation-delay: 12s; }
.slides img:nth-child(4) { animation-delay: 18s; }
@keyframes slide {
  0% { opacity: 0; transform: scale(1.06); }
  6% { opacity: 1; }
  25% { opacity: 1; transform: scale(1.0); }
  33% { opacity: 0; transform: scale(0.98); }
  100% { opacity: 0; }
}
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,18,48,0.35) 0%, rgba(15,18,48,0.05) 35%, rgba(15,18,48,0.85) 100%); }
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; width: 100%; padding: 150px 24px 64px; display: grid; gap: 26px; }
.hero h1 { max-width: 11em; }
.swap { display: inline-grid; vertical-align: bottom; text-align: left; }
.swap span { grid-area: 1 / 1; color: var(--peach); font-style: italic; opacity: 0; transform: translateY(0.4em); animation: swap 12s infinite; }
.swap span:nth-child(1) { animation-delay: 0s; }
/* Before site.js adds the other words (or without it), the one word simply stands. */
.swap span:only-child { opacity: 1; transform: none; animation: none; }
.swap span:nth-child(2) { animation-delay: 3s; }
.swap span:nth-child(3) { animation-delay: 6s; }
.swap span:nth-child(4) { animation-delay: 9s; }
@keyframes swap {
  0% { opacity: 0; transform: translateY(0.4em); }
  6%, 22% { opacity: 1; transform: translateY(0); }
  28%, 100% { opacity: 0; transform: translateY(-0.4em); }
}
.hero .lede { color: var(--cream-72); max-width: 30em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-caption { position: absolute; right: 24px; bottom: 22px; font-size: 12px; color: var(--cream-72); letter-spacing: 0.06em; text-transform: uppercase; display: grid; }
.hero-caption span { grid-area: 1 / 1; opacity: 0; animation: caption 24s infinite; text-align: right; }
.hero-caption span:nth-child(1) { animation-delay: 0s; }
.hero-caption span:nth-child(2) { animation-delay: 6s; }
.hero-caption span:nth-child(3) { animation-delay: 12s; }
.hero-caption span:nth-child(4) { animation-delay: 18s; }
@keyframes caption { 0% { opacity: 0; } 6%, 25% { opacity: 1; } 33%, 100% { opacity: 0; } }
.scroll-cue { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: 22px; height: 36px; border: 2px solid var(--cream-25); border-radius: 12px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--cream); animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* Hero plane: a dotted arc across the sky, a plane flying it */
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-sky > path { fill: none; stroke: var(--cream); stroke-opacity: 0.5; stroke-width: 1.5; stroke-dasharray: 4 8; animation: dash 60s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -600; } }
.hero-sky .plane { offset-path: path("M -60 420 Q 700 40 1500 300"); offset-rotate: auto; animation: fly 22s linear infinite; }
@keyframes fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* ---------- Sheets: rounded sections that overlap the one before ---------- */
.sheet { position: relative; border-radius: 40px 40px 0 0; margin-top: -40px; padding: 110px 0 100px; }
.sheet.paper { background: var(--paper); color: var(--text); }
.sheet.paper-2 { background: var(--paper-2); color: var(--text); }
.sheet.night { background: var(--night); color: var(--cream); margin-top: 0; border-radius: 0; padding-top: 90px; }
.sheet.ink { background: var(--ink); color: var(--cream); }
.sheet.night .lede, .sheet.ink .lede { color: var(--cream-72); }
.sheet.night .eyebrow, .sheet.ink .eyebrow { color: var(--peach); }
.section-head { display: grid; gap: 14px; max-width: 42em; margin-bottom: 44px; }

/* ---------- Route map (the journey draws itself) ---------- */
.map-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #26245a 0%, var(--night) 70%); padding: 24px; }
.route-map { width: 100%; height: auto; display: block; }
.route-map .land { fill: #2e2054; stroke: #4a3a7c; stroke-width: 0.5; }
.route-map .route-shadow { fill: none; stroke: rgba(255, 243, 228, 0.12); stroke-width: 6; stroke-linecap: round; }
.route-map .route { fill: none; stroke: var(--peach); stroke-width: 2.2; stroke-linecap: round; }
.route-map .stop { fill: var(--cream); stroke: var(--night); stroke-width: 1.5; }
.route-map .stop-label { font-family: var(--body); font-size: 13px; font-weight: 700; fill: var(--cream); paint-order: stroke; stroke: var(--night); stroke-width: 4px; stroke-linejoin: round; }
.route-map .plane { opacity: 0; }
.js .route-map .route { stroke-dasharray: var(--len, 4000); stroke-dashoffset: var(--len, 4000); }
.js .route-map .stop { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.2); }
.js .route-map .stop-label { opacity: 0; }
.js .map-stage.in .route { animation: draw 7s var(--ease) forwards; }
.js .map-stage.in .stop { animation: pop 0.5s var(--ease) forwards; animation-delay: calc(0.35s + var(--i) * 0.42s); }
.js .map-stage.in .stop-label { animation: fadein 0.8s ease forwards; animation-delay: 2.4s; }
.js .map-stage.in .plane { opacity: 1; offset-path: var(--route); offset-rotate: auto 0deg; animation: fly 7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
@keyframes fadein { to { opacity: 1; } }
.map-legend { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 22px; color: var(--cream-72); font-size: 14px; }
.map-legend b { color: var(--cream); font-family: var(--display); font-weight: 400; font-size: 30px; display: block; line-height: 1; }

/* ---------- Posters (trip cards) ---------- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 400px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 24px 40px; max-width: calc(var(--max) + 48px); margin: 0 auto; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip { touch-action: pan-x pan-y pinch-zoom; }
.card {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; background: var(--indigo);
  box-shadow: 0 24px 50px rgba(15, 18, 48, 0.28); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { box-shadow: 0 40px 70px rgba(15, 18, 48, 0.4); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover img { transform: scale(1.06); }
.card-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.65) 100%); }
.card-text { position: absolute; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 4px; color: var(--cream); }
.card-title { font-family: var(--display); font-size: 30px; line-height: 1.05; }
.card-route { font-size: 13px; color: var(--cream-72); }
.card-badge { position: absolute; top: 16px; left: 16px; font-size: 12px; font-weight: 800; padding: 7px 11px; border-radius: 999px; background: var(--peach); color: var(--ink); }
.card-stamp {
  position: absolute; top: 14px; right: 14px; width: 66px; height: 66px; border-radius: 50%; border: 2px solid var(--cream); color: var(--cream);
  display: grid; place-items: center; font-family: var(--mono); font-size: 10px; text-align: center; line-height: 1.15; letter-spacing: 0.06em;
  transform: rotate(-14deg); opacity: 0.85; box-shadow: inset 0 0 0 3px rgba(0,0,0,0.25), inset 0 0 0 4px var(--cream);
}

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 48px 0; }
.feature.flip .feature-copy { order: -1; }
.feature-copy { display: grid; gap: 18px; max-width: 30em; }
.feature-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); }
.feature-copy li { display: flex; gap: 12px; align-items: flex-start; }
.feature-copy li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 4px; color: var(--teal); }
.stage { position: relative; display: grid; place-items: center; padding: 44px 0; border-radius: var(--radius); overflow: hidden; background: var(--indigo); }
.stage img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,18,48,0.15), rgba(15,18,48,0.55)); }
.phone { position: relative; z-index: 1; width: min(280px, 66%); border-radius: 40px; padding: 10px; background: #0b0b12; box-shadow: 0 30px 60px rgba(15, 18, 48, 0.5), inset 0 0 0 1px rgba(255,255,255,0.08); }
.phone img { border-radius: 31px; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Email → itinerary */
.inbox-demo { display: grid; gap: 12px; }
.mail { background: #fff; border-radius: 16px; padding: 14px 16px; border: 1px solid var(--line); display: grid; gap: 4px; font-size: 14px; box-shadow: 0 8px 20px rgba(34,29,61,0.06); }
.mail b { font-weight: 800; }
.mail small { color: var(--muted); }
.arrow { text-align: center; color: var(--teal); font-size: 22px; line-height: 1; }
.itin { background: var(--ink); color: var(--cream); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; font-size: 14px; }
.itin div { display: flex; gap: 12px; align-items: baseline; }
.itin .t { font-family: var(--mono); color: var(--peach); font-size: 12px; min-width: 44px; }
.js .inbox-demo .mail, .js .inbox-demo .arrow, .js .inbox-demo .itin { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .inbox-demo.in .mail { opacity: 1; transform: none; }
.js .inbox-demo.in .arrow { opacity: 1; transform: none; transition-delay: 0.5s; }
.js .inbox-demo.in .itin { opacity: 1; transform: none; transition-delay: 0.9s; }

/* ---------- Real app footage in a phone ---------- */
.video-phone { width: min(300px, 70%); }
.video-phone { position: relative; }
.video-phone video, .video-phone .poster { display: block; width: 100%; border-radius: 31px; background: #0b0b12; aspect-ratio: 1178 / 2556; object-fit: cover; }
.video-phone .poster { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
.video-phone.playing .poster { display: none; }

.gif-phone { width: min(300px, 70%); }
.gif-phone img { display: block; width: 100%; border-radius: 31px; background: #0b0b12; aspect-ratio: 1178 / 2556; object-fit: cover; }

/* ---------- Companion chat ---------- */
.chat-stage { padding: 36px 28px; align-items: end; min-height: 520px; }
.chat { position: relative; z-index: 1; width: min(100%, 360px); display: grid; gap: 10px; }
.bubble { max-width: 88%; padding: 12px 15px; border-radius: 18px; font-size: 15px; line-height: 1.45; box-shadow: 0 10px 30px rgba(15,18,48,0.25); }
.bubble.me { justify-self: end; background: var(--peach); color: var(--ink); border-bottom-right-radius: 6px; }
.bubble.them { justify-self: start; background: rgba(255, 243, 228, 0.96); color: var(--text); border-bottom-left-radius: 6px; display: grid; gap: 4px; }
.bubble.them b { font-weight: 800; }
.bubble.them small { color: var(--muted); font-size: 12px; }
.bubble.typing { display: flex; gap: 5px; padding: 14px 16px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.voice { display: flex; align-items: center; gap: 3px; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(15,18,48,0.75); color: var(--cream); justify-self: stretch; margin-top: 4px; }
.voice span { width: 3px; height: 8px; border-radius: 2px; background: var(--peach); animation: wave 1.1s ease-in-out infinite; }
.voice span:nth-child(2n) { animation-delay: 0.15s; } .voice span:nth-child(3n) { animation-delay: 0.3s; } .voice span:nth-child(5n) { animation-delay: 0.45s; }
.voice em { font-style: normal; font-size: 13px; margin-left: 10px; color: var(--cream-72); }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 22px; } }
.js .chat-demo .bubble, .js .chat-demo .voice { opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .chat-demo.in .bubble, .js .chat-demo.in .voice { opacity: 1; transform: none; }
.js .chat-demo.in .bubble:nth-child(1) { transition-delay: 0.2s; }
.js .chat-demo.in .bubble.typing { transition-delay: 0.9s; animation: hide 0.01s linear 2.2s forwards; }
.js .chat-demo.in .bubble:nth-child(3) { transition-delay: 2.2s; }
.js .chat-demo.in .bubble:nth-child(4) { transition-delay: 3.6s; }
.js .chat-demo.in .bubble:nth-child(5) { transition-delay: 4.6s; }
.js .chat-demo.in .voice { transition-delay: 5.6s; }
@keyframes hide { to { display: none; opacity: 0; height: 0; padding: 0; margin: 0; } }

/* ---------- Memories: typing search + mosaic ---------- */
.search {
  display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 999px; padding: 16px 22px; max-width: 560px;
  border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(34,29,61,0.08); font-size: 18px; margin: 28px 0 36px;
}
.search svg { width: 22px; height: 22px; color: var(--muted); flex-shrink: 0; }
.search .typed { color: var(--text); font-weight: 600; min-height: 1.4em; }
.search .caret { width: 2px; height: 1.2em; background: var(--teal); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mosaic figure { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--indigo); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.mosaic figure.tall { grid-row: span 2; aspect-ratio: auto; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; font-size: 13px; color: var(--cream); background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.65)); }
.mosaic.filtered figure:not(.hit) { opacity: 0.22; transform: scale(0.97); }
.mosaic.filtered figure.hit { transform: scale(1.02); box-shadow: 0 0 0 3px var(--peach), 0 20px 40px rgba(34,29,61,0.2); z-index: 1; }

/* ---------- Day-by-day player ---------- */
.day-stage { padding: 32px 24px; min-height: 480px; }
.day-player { position: relative; z-index: 1; width: min(100%, 340px); background: var(--paper); color: var(--text); border-radius: 22px; padding: 16px; box-shadow: 0 24px 50px rgba(15,18,48,0.45); display: grid; gap: 12px; }
.day-title { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); font-size: 20px; }
.day-title small { font-family: var(--body); font-size: 12px; color: var(--muted); font-weight: 700; }
.day-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.day { border: 0; background: transparent; border-radius: 14px; padding: 8px 0 6px; display: grid; justify-items: center; gap: 1px; cursor: pointer; font-family: var(--body); color: var(--text); transition: background 0.18s ease, color 0.18s ease, transform 0.25s var(--ease); }
.day small { font-size: 11px; font-weight: 700; color: var(--muted); }
.day b { font-size: 18px; font-weight: 800; }
.day.on { background: var(--teal); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(12,120,143,0.35); }
.day.on small { color: rgba(255,255,255,0.8); }
.panels { position: relative; min-height: 150px; }
.panel { position: absolute; inset: 0; display: grid; gap: 8px; align-content: start; opacity: 0; transform: translateX(18px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); pointer-events: none; }
.panel.on { opacity: 1; transform: none; pointer-events: auto; }
.panel-head { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.row { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 12px; border: 1px solid var(--line); }
.row svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; }
.row b { display: block; font-size: 14px; font-weight: 800; }
.row small { font-size: 12px; color: var(--muted); }
.row.warn { border-color: rgba(230, 140, 40, 0.5); }
.row.warn svg, .row.warn b { color: #c9701c; }

/* ---------- Relive player ---------- */
.relive-stage { padding: 28px; min-height: 480px; }
.relive-player { position: relative; z-index: 1; width: min(100%, 340px); }
.relive-map { width: 100%; height: auto; display: block; border-radius: 20px; background: rgba(15,18,48,0.72); box-shadow: 0 20px 50px rgba(15,18,48,0.45); }
.relive-map .land { fill: #3a2c6a; }
.relive-map .track { fill: none; stroke: rgba(255,243,228,0.25); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 7; }
.relive-map .trail { fill: none; stroke: var(--peach); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
.relive-map .rstop { fill: var(--cream); stroke: var(--night); stroke-width: 2; }
.relive-map .rlabel { font-family: var(--body); font-size: 13px; font-weight: 700; fill: var(--cream); paint-order: stroke; stroke: var(--night); stroke-width: 4px; stroke-linejoin: round; }
.relive-map .rdot { fill: var(--peach); stroke: var(--cream); stroke-width: 2.5; opacity: 0; offset-path: var(--route); offset-rotate: 0deg; }
.rphotos { position: absolute; inset: 0; pointer-events: none; }
.rphoto { position: absolute; margin: 0; width: 120px; border-radius: 12px; overflow: hidden; background: #fff; padding: 5px 5px 6px; box-shadow: 0 14px 30px rgba(15,18,48,0.4); opacity: 0; transform: translateY(10px) rotate(-3deg) scale(0.9); }
.rphoto img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; }
.rphoto figcaption { font-size: 11px; color: var(--text); padding: 5px 2px 0; font-weight: 700; }
.rphoto[style*="--n:0"] { right: 8%; bottom: 14%; }
.rphoto[style*="--n:1"] { left: 4%; top: 34%; transform: translateY(10px) rotate(3deg) scale(0.9); }
.rphoto[style*="--n:2"] { right: 6%; top: 4%; }
.playing .rdot { opacity: 1; animation: fly 6s var(--ease) forwards; }
.playing .trail { animation: draw 6s var(--ease) forwards; }
.playing .rphoto { animation: photo-in 0.6s var(--ease) forwards; animation-delay: calc(0.6s + var(--n) * 2.4s); }
@keyframes photo-in { to { opacity: 1; transform: translateY(0) rotate(var(--tilt, -3deg)) scale(1); } }
.rphoto[style*="--n:1"] { --tilt: 3deg; }
.replay { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 0; background: var(--cream); color: var(--ink); font: 700 13px var(--body); cursor: pointer; box-shadow: 0 8px 20px rgba(15,18,48,0.35); }
.replay svg { width: 16px; height: 16px; }
.replay:hover { background: #fff; }

/* ---------- Memory stack ---------- */
.memory-stage { min-height: 460px; }
.memories { position: relative; z-index: 1; width: min(100%, 300px); aspect-ratio: 3 / 4; }
.mem { position: absolute; inset: 0; margin: 0; border-radius: 20px; overflow: hidden; background: var(--ink); box-shadow: 0 24px 50px rgba(15,18,48,0.45); animation: memcycle 12s infinite; transform-origin: 50% 100%; }
.mem:nth-child(1) { animation-delay: 0s; } .mem:nth-child(2) { animation-delay: 4s; } .mem:nth-child(3) { animation-delay: 8s; }
.mem img { width: 100%; height: 100%; object-fit: cover; }
.mem figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 16px; color: var(--cream); font-size: 13px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.7)); display: grid; gap: 2px; }
.mem figcaption b { font-family: var(--display); font-weight: 400; font-size: 22px; }
@keyframes memcycle {
  0% { opacity: 0; transform: translateY(30px) rotate(4deg) scale(0.94); z-index: 3; }
  6%, 30% { opacity: 1; transform: translateY(0) rotate(0) scale(1); z-index: 3; }
  36%, 100% { opacity: 0; transform: translateY(-16px) rotate(-3deg) scale(0.96); z-index: 1; }
}

/* ---------- Passport (rendered live) ---------- */
.passport-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pp { width: min(100%, 380px); margin: 0 auto; border-radius: 22px; overflow: hidden; background: var(--ink); color: var(--cream); box-shadow: 0 30px 70px rgba(0,0,0,0.5); transform: rotate(-2deg); transition: transform 0.6s var(--ease); }
.pp:hover { transform: rotate(0deg) scale(1.02); }
.pp-sky { position: relative; height: 200px; background: linear-gradient(180deg, var(--peach) 0%, var(--rose) 34%, var(--violet) 62%, var(--indigo) 100%); }
.pp-sky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-head { position: absolute; top: 12px; left: 16px; right: 16px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: 0.22em; color: #3a2653; }
.pp-body { padding: 16px 18px 18px; display: grid; gap: 12px; }
.pp-big { display: flex; justify-content: space-between; align-items: flex-end; }
.pp-big .pp-n { font-size: 52px; font-weight: 800; line-height: 0.95; letter-spacing: -0.02em; display: block; }
.pp-big span { color: var(--peach); font-size: 14px; font-weight: 600; }
.pp-id { text-align: right; font-size: 12px; color: var(--cream-72); }
.pp-id b { color: var(--cream); font-weight: 600; }
.pp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pp-grid div { display: grid; gap: 2px; }
.pp-grid small { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-72); }
.pp-grid b { font-size: 24px; font-weight: 800; line-height: 1.1; }
.pp-flags { display: flex; }
.pp-flags span { width: 28px; height: 28px; border-radius: 50%; background: var(--indigo); border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 15px; margin-left: -6px; }
.pp-flags span:first-child { margin-left: 0; }
.pp-code { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: rgba(255,243,228,0.62); border-top: 1px dashed var(--cream-25); padding-top: 10px; white-space: pre-line; line-height: 1.5; }
.stamp {
  position: absolute; right: 16px; bottom: 14px; width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--cream); color: var(--cream);
  display: grid; place-items: center; font-family: var(--mono); font-size: 11px; line-height: 1.15; text-align: center; letter-spacing: 0.08em;
  transform: rotate(-12deg); opacity: 0.9;
}
.js .stamp { transform: rotate(-12deg) scale(2.4); opacity: 0; }
.js .in .stamp { animation: stamp 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) 1.1s forwards; }
@keyframes stamp { to { transform: rotate(-12deg) scale(1); opacity: 0.9; } }
.passport-copy .lede { margin-top: 14px; }
.big-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin-top: 34px; }
.big-stats div { display: grid; gap: 2px; }
.big-stats small { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-72); }
.big-stats b { font-size: 40px; font-weight: 800; line-height: 1.05; }
.big-stats b i { font-style: normal; font-size: 16px; color: var(--cream-72); margin-left: 4px; font-weight: 600; }

/* ---------- Privacy ---------- */
.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.promise article { display: grid; gap: 10px; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.promise article:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(34,29,61,0.08); }
.promise svg { width: 30px; height: 30px; color: var(--teal); }
.promise p { color: var(--muted); font-size: 16px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: 150px 0 120px; margin-top: -40px; border-radius: 40px 40px 0 0; background: linear-gradient(180deg, var(--peach) 0%, var(--rose) 30%, var(--violet) 60%, var(--night) 100%); }
.cta .sun { position: absolute; top: 50px; left: 50%; width: 180px; height: 180px; margin-left: -90px; border-radius: 50%; background: var(--cream); opacity: 0.9; animation: float 8s ease-in-out infinite; }
.cta .inner { position: relative; display: grid; gap: 22px; justify-items: center; }
.cta h2 { color: var(--ink); }
.cta .lede { color: var(--ink); opacity: 0.8; text-align: center; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.cta .btn { background: var(--ink); color: var(--cream); box-shadow: 0 16px 40px rgba(15,18,48,0.35); }
.cta .btn:hover { background: var(--night); color: var(--cream); }
.cta .btn-ghost { background: rgba(255,243,228,0.14); color: var(--cream); border-color: var(--cream-25); }
.cta .btn-ghost:hover { background: rgba(255,243,228,0.24); color: var(--cream); }

/* ---------- Footer ---------- */
footer { background: var(--night); color: var(--cream-72); font-size: 14px; padding: 36px 0 48px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--cream-72); }
.foot a:hover { color: var(--cream); }
.credits { margin-top: 18px; font-size: 12px; color: rgba(255,243,228,0.5); max-width: 70em; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .slides img:first-child { opacity: 1; transform: none; }
  .swap span:first-child { opacity: 1; transform: none; }
  .route-map .stop, .route-map .stop-label { opacity: 1; transform: none; }
  .js .route-map .route { stroke-dashoffset: 0; }
  .js .stamp { opacity: 0.9; transform: rotate(-12deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .relive-stage, .memory-stage, .day-stage { min-height: 0; padding: 20px 14px; }
  .rphoto { width: 96px; }
  .chat-stage { min-height: 0; padding: 28px 16px; }
  .feature, .passport-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-copy { order: 0; }  /* media first on a phone, always */
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise { grid-template-columns: 1fr; }
  /* Everything folds into a menu rather than being dropped: two pills side by side
     already wrapped to two lines each at 375px, and hiding the links altogether left
     no way to reach them. */
  .navtoggle { display: flex; }
  .nav { padding: 14px 18px; }
  .nav-links {
    position: absolute; top: 100%; right: 14px; left: 14px; margin-top: 8px;
    display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: rgba(15, 18, 48, 0.97); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--cream-25); border-radius: 18px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 12px; font-size: 16px; }
  .nav-links a:hover { background: rgba(255, 243, 228, 0.08); }
  .nav-links a.signin { border: 0; padding: 12px 14px; }
  .nav-links a.btn { justify-content: center; margin-top: 6px; }
  .sheet { padding: 80px 0 72px; border-radius: 28px 28px 0 0; margin-top: -28px; }
  .sheet.night { margin-top: 0; border-radius: 0; }
  .hero-inner { padding-top: 120px; }
  .route-map .stop-label { font-size: 18px; }
  .map-stage { padding: 12px; }
  .pp { transform: none; }
  .hero-caption { display: none; }
}

/* ---------- Marketing pages (generated by build/build.ts) ---------- */
/* A shorter night hero than the home page's, with the crumbs above the eyebrow. */
.lp-hero { position: relative; overflow: hidden; background: var(--night); color: var(--cream); padding: 132px 0 120px; }
.lp-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.lp-hero .hero-scrim { position: absolute; inset: 0; }
.lp-hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.lp-hero-grid.solo { grid-template-columns: minmax(0, 46em); }
.lp-hero-copy { display: grid; gap: 18px; }
.lp-hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; }
.lp-hero .lede { color: var(--cream-72); max-width: 32em; }
.lp-hero .eyebrow { color: var(--peach); }
.lp-hero-media { display: grid; place-items: center; }
.lp-hero-media .gif-phone { width: min(280px, 80%); }
.lp-checked { font-size: 13px; color: var(--cream-72); }
.lp-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--cream-72); }
.lp-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.lp-crumbs a { color: var(--cream-72); }
.lp-crumbs a:hover { color: var(--cream); }
.gif-phone img[height] { height: auto; }

.lp-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
a.lp-card-link { display: grid; gap: 10px; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
a.lp-card-link:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(34,29,61,0.08); color: var(--text); }
a.lp-card-link p { color: var(--muted); font-size: 16px; }
.lp-more { font-weight: 800; font-size: 14px; color: var(--teal); }
.sheet.night .promise article, .sheet.ink .promise article { background: rgba(255,243,228,0.06); border-color: var(--cream-25); }
.sheet.night .promise p, .sheet.ink .promise p { color: var(--cream-72); }

.lp-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 620px; }
.lp-table th, .lp-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lp-table thead th { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.lp-table tbody th { font-weight: 700; width: 26%; }
.lp-table td { color: var(--muted); }
.lp-table .us { background: rgba(244, 195, 154, 0.14); color: var(--text); }
.lp-table tr:last-child th, .lp-table tr:last-child td { border-bottom: 0; }
.lp-note { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 52em; }
.lp-note a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

.lp-faq { display: grid; gap: 12px; max-width: 52em; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.lp-faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; transition: transform 0.25s var(--ease); }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details div { padding: 0 0 18px; color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.lp-faq a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

.lp-prose { max-width: 46em; display: grid; gap: 14px; font-size: 17.5px; line-height: 1.7; color: var(--text); }
.lp-prose p { margin: 0; }
.lp-prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.lp-prose h3 { font-size: 26px; margin-top: 18px; }
.lp-prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Who it's for: four doors from the home page. */
.lp-audience { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-audience a { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; color: var(--cream); text-decoration: none; background: var(--indigo); }
.lp-audience img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.lp-audience a:hover img { transform: scale(1.05); }
.lp-audience span { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(15,18,48,0.85)); display: grid; gap: 4px; }
.lp-audience b { font-family: var(--display); font-weight: 400; font-size: 26px; }
.lp-audience small { font-size: 14px; color: var(--cream-72); }

/* From the founder. */
.maker-card { display: flex; gap: 36px; align-items: center; max-width: 920px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; }
.maker-photo { width: 150px; height: 150px; flex-shrink: 0; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.maker-quote { margin: 12px 0 0; font-family: var(--display); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--text); }
.maker-name { margin: 16px 0 0; display: grid; gap: 2px; font-size: 15px; }
.maker-name span { font-size: 14px; color: var(--muted); }
.maker-name a { color: var(--teal); }

/* The footer's link columns. */
.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; padding: 28px 0 36px; border-bottom: 1px solid var(--cream-25); margin-bottom: 24px; }
.foot-col { display: grid; gap: 9px; align-content: start; }
.foot-col a { color: var(--cream-72); }
.foot-col a:hover { color: var(--cream); }
.foot-h { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 800; color: var(--peach); }
.foot-brand p { margin: 0; max-width: 22em; line-height: 1.55; }
.foot-brand .brand { font-size: 24px; }
.foot-store { font-weight: 700; color: var(--cream) !important; }

@media (max-width: 900px) {
  .lp-hero { padding: 112px 0 96px; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .maker-card { flex-direction: column; align-items: flex-start; padding: 26px 22px; gap: 18px; }
  .maker-photo { width: 110px; height: 110px; }
}

/* The countries-visited map (/tools/countries-visited-map, public/tools/visited.js). */
.vt { display: grid; gap: 16px; }
.vt-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.vt-count { margin: 0; font-size: 18px; color: var(--muted); }
.vt-count b { font-family: var(--display); font-weight: 400; font-size: 48px; color: var(--text); margin-right: 6px; }
.vt-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vt-actions .btn { padding: 11px 18px; font-size: 14px; box-shadow: none; cursor: pointer; }
.btn-quiet { background: #fff; color: var(--text); border-color: var(--line); }
.btn-quiet:hover { background: var(--paper); color: var(--text); }
.vt-map { background: var(--night); border-radius: var(--radius); padding: 18px; overflow: hidden; }
.vt-map svg { display: block; width: 100%; height: auto; }
.vt-sea { fill: #1a1d45; }
.vt-c { fill: rgba(255, 243, 228, 0.18); stroke: var(--night); stroke-width: 0.4; cursor: pointer; transition: fill 0.2s ease; }
.vt-c:hover { fill: rgba(255, 243, 228, 0.34); }
.vt-c.on { fill: var(--peach); }
.vt-c.on:hover { fill: #ffd4b3; }
.vt-status { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--muted); }
.vt-pick { display: grid; gap: 12px; }
.vt-search { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.vt-search input { font: inherit; font-weight: 500; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; max-width: 420px; }
.vt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 16px; max-height: 280px; overflow-y: auto; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; font-size: 14.5px; }
.vt-list label { display: flex; gap: 8px; align-items: center; padding: 3px 0; cursor: pointer; }
.vt-list label[hidden] { display: none; }
.vt-list input { accent-color: var(--teal); }
