/* ==========================================================================
   Mapicus web — the app's design language on the web.
   Tokens mirror lib/config/theme.dart: navy primary, coral highlight,
   Plus Jakarta Sans, 8/12/16/24/32 radii, soft layered shadows, dark mode.
   ========================================================================== */

:root {
  color-scheme: light dark;
  --primary: #1a1a2e;
  --primary-2: #16213e;
  --accent: #0f3460;
  --highlight: #e94560;
  --highlight-soft: #ff6b6b;

  --bg: #fafafa;
  --surface: #f5f5f5;
  --card: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --divider: #e5e7eb;

  /* Primary action colour: navy in light mode, brand blue in dark mode. */
  --brand: #1a1a2e;
  --brand-gradient: linear-gradient(135deg, #1a1a2e, #16213e);
  --brand-shadow: rgba(26, 26, 46, 0.28);
  --journey-gradient: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);

  --header-bg: rgba(250, 250, 250, 0.86);
  --header-border: rgba(229, 231, 235, 0.8);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02);
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 6px 16px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.04);
  --shadow-journey: 0 24px 60px rgba(26, 26, 46, 0.28);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 68px;
}

/* Dark tokens apply with the system setting unless a page pins a theme via
   <html data-theme="light|dark">; the explicit attribute always wins. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f14;
    --surface: #1a1a24;
    --card: #22222e;
    --text: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    --divider: #2d2d3a;

    --brand: #5b8def;
    --brand-gradient: linear-gradient(135deg, #5b8def, #3b6fe0);
    --brand-shadow: rgba(91, 141, 239, 0.35);

    --header-bg: rgba(15, 15, 20, 0.82);
    --header-border: rgba(45, 45, 58, 0.8);

    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-elevated: 0 6px 16px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.2);
    --shadow-journey: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  --bg: #0f0f14;
  --surface: #1a1a24;
  --card: #22222e;
  --text: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  --divider: #2d2d3a;

  --brand: #5b8def;
  --brand-gradient: linear-gradient(135deg, #5b8def, #3b6fe0);
  --brand-shadow: rgba(91, 141, 239, 0.35);

  --header-bg: rgba(15, 15, 20, 0.82);
  --header-border: rgba(45, 45, 58, 0.8);

  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 6px 16px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.2);
  --shadow-journey: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

p {
  margin: 0;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

main {
  flex: 1;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:not(.nav-cta) {
  padding: 9px 13px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:not(.nav-cta):hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface);
}

.nav-cta {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  border: none;
  background: var(--surface);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text);
}

/* ── Buttons, badges, chips, avatars ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-lg);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 8px 20px var(--brand-shadow);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px var(--brand-shadow);
}

.btn-outline {
  background: var(--card);
  color: var(--text);
  border: 1.5px solid var(--divider);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--divider);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  backdrop-filter: blur(6px);
}

.badge-live {
  background: #10b981;
}

.badge-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  animation: badge-pulse 1.6s ease-out infinite;
}

@keyframes badge-pulse {
  to {
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
}

.chip b {
  font-weight: 700;
}

.chip-link {
  transition: background 0.2s, transform 0.2s;
}

.chip-link:hover {
  background: var(--divider);
  transform: translateY(-1px);
}

.chip svg {
  color: var(--brand);
  flex-shrink: 0;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
}

.avatar-initials {
  --size: 36px;
  width: var(--size);
  height: var(--size);
  display: inline-grid;
  place-items: center;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 700;
  font-size: calc(var(--size) * 0.38);
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(233, 69, 96, 0.1);
  color: var(--highlight);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Store badges ─────────────────────────────────────────────────────── */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-row-stack {
  flex-direction: column;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  padding: 11px 18px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--divider);
  color: var(--text);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--text-tertiary);
}

.store-badge-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-badge-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.store-badge-copy small {
  font-size: 0.6875rem;
  line-height: 1.1;
  color: var(--text-tertiary);
}

.store-badge-copy strong {
  font-size: 1.0625rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.store-badge-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: none;
}

.store-badge-dark:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.store-badge-dark .store-badge-copy small {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Section furniture ────────────────────────────────────────────────── */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}

.section-head.center {
  align-items: center;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 56ch;
}

/* ── Landing: hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.hero-orb.orb-a {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.14), transparent 68%);
  animation: orb-drift-a 16s ease-in-out infinite;
}

.hero-orb.orb-b {
  width: 440px;
  height: 440px;
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(15, 52, 96, 0.14), transparent 68%);
  animation: orb-drift-b 18s ease-in-out infinite;
}

@keyframes orb-drift-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-40px, 30px) scale(1.08);
  }
}

@keyframes orb-drift-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, -30px) scale(1.1);
  }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 20px;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.hero-lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.55;
}

.hero-download {
  margin-top: 32px;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% -10% -10% -10%;
  background: radial-gradient(ellipse at 50% 60%, rgba(15, 52, 96, 0.18), transparent 65%);
  filter: blur(20px);
  z-index: -1;
}

.hero-visual-note {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* ── Journey card ─────────────────────────────────────────────────────── */
.journey-card {
  display: block;
  position: relative;
  width: 100%;
  padding: 26px 26px 24px;
  border-radius: var(--radius-xl);
  background: var(--journey-gradient);
  color: #fff;
  box-shadow: var(--shadow-journey);
  overflow: hidden;
}

.journey-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.12), transparent 45%);
  pointer-events: none;
}

.journey-card > * {
  position: relative;
  z-index: 1;
}

.journey-card-hero {
  max-width: 460px;
  transform: rotate(-1.5deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
}

.journey-card-hero:hover {
  transform: rotate(0deg) translateY(-4px);
}

.journey-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.journey-brand {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.journey-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journey-dest {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--highlight);
  font-weight: 700;
  font-size: 0.9375rem;
}

.journey-dest span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.journey-dates {
  margin-top: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.journey-route {
  margin-top: 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.5px) 0 0 / 22px 22px,
    rgba(255, 255, 255, 0.04);
  aspect-ratio: 560 / 380;
  overflow: hidden;
}

.journey-route svg {
  width: 100%;
  height: 100%;
  font-family: var(--font);
}

.journey-route-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.journey-stats {
  display: flex;
  gap: 28px;
  margin-top: 20px;
}

.journey-stat b {
  display: block;
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.journey-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* Route drawing animation (the same reveal the app's player does). */
.route-line.is-animated {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: route-draw 2.2s cubic-bezier(0.65, 0, 0.35, 1) 0.25s forwards;
}

.route-pin.is-animated {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pin-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.35) forwards;
}

@keyframes route-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pin-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Skeleton while the hero card loads. */
.journey-card-skeleton {
  min-height: 520px;
}

.skeleton-line,
.skeleton-block {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-line {
  height: 12px;
  margin-bottom: 14px;
}

.skeleton-line.tall {
  height: 28px;
}

.skeleton-line.w-30 {
  width: 30%;
}

.skeleton-line.w-40 {
  width: 40%;
}

.skeleton-line.w-50 {
  width: 50%;
}

.skeleton-line.w-70 {
  width: 70%;
}

.skeleton-block {
  aspect-ratio: 560 / 380;
  border-radius: var(--radius-lg);
  margin: 20px 0;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* ── Landing: features, featured, steps, CTA ──────────────────────────── */
.features,
.how {
  padding: 56px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--brand);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.featured {
  padding: 56px 0;
  background: var(--surface);
}

.trip-grid,
.stops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.trip-card,
.stop-card a {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.trip-card:hover,
.stop-card a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
}

.trip-card-media,
.stop-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  overflow: hidden;
}

.trip-card-media img,
.stop-media img,
.media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.trip-card:hover .trip-card-media img,
.stop-card a:hover .stop-media img {
  transform: scale(1.04);
}

.media-placeholder,
.trip-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface), var(--divider));
}

.trip-card-media .badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.trip-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trip-card-title {
  font-size: 1.0625rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-card-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-card-owner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.steps li {
  padding: 8px 4px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(233, 69, 96, 0.12);
  color: var(--highlight);
  font-weight: 800;
  margin-bottom: 14px;
}

.steps h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.steps p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.cta-band {
  padding: 24px 0 72px;
}

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px 48px;
  border-radius: var(--radius-2xl);
  background: var(--journey-gradient);
  color: #fff;
  box-shadow: var(--shadow-journey);
}

.cta-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.cta-copy p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 46ch;
}

/* ── Share pages ──────────────────────────────────────────────────────── */
.share-main {
  padding-top: 32px;
}

.share-container {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-bottom: 32px;
}

.share-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

.share-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.owner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.owner-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.owner-name {
  font-weight: 700;
}

.owner-handle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.share-description {
  color: var(--text-secondary);
  white-space: pre-line;
}

.share-panel {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.share-panel-title {
  font-size: 1.125rem;
}

.share-panel-body {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-top: -6px;
}

.share-panel-hint {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 4px;
}

.share-panel .store-badge {
  width: 100%;
  min-width: 0;
}

.share-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.stops-section .section-head,
.photos-section .section-head {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}

.stop-num {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--highlight);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.stop-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stop-place {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stop-caption {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stop-date {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.media-video-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
}

.media-video-badge.is-large {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
}

.media-video-badge.is-large svg {
  width: 34px;
  height: 34px;
}

/* Post page */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

.post-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #0f0f14;
  box-shadow: var(--shadow-elevated);
}

.post-photo img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.is-active,
.gallery-thumb:hover {
  opacity: 1;
  border-color: var(--brand);
}

.post-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-place {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  letter-spacing: -0.04em;
  font-weight: 800;
}

.post-meta {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin-top: -6px;
}

.post-caption {
  font-size: 1.0625rem;
  line-height: 1.55;
  white-space: pre-line;
}

.post-stats {
  display: flex;
  gap: 18px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.post-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-stats svg {
  color: var(--highlight);
}

/* Place page */
.place-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--journey-gradient);
  margin-top: -32px;
  margin-bottom: 8px;
  overflow: hidden;
}

.place-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.place-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 26, 46, 0.2) 0%, rgba(26, 26, 46, 0.55) 55%, rgba(26, 26, 46, 0.92) 100%);
}

.place-hero-plain::before {
  display: none;
}

.place-hero-inner {
  position: relative;
  z-index: 1;
  padding: 120px 0 40px;
}

.place-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}

.place-flag {
  font-size: 1.25rem;
}

.place-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
  margin: 6px 0 20px;
}

.place-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.place-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.place-stat b {
  font-size: 1.25rem;
  font-weight: 800;
}

.place-stat span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.photo-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.photo-tile:hover img {
  transform: scale(1.05);
}

.photo-tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  font-size: 0.8125rem;
}

.photo-tile-caption b {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-tile-caption span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
}

.place-cta .share-panel {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

/* Not-found / error */
.state-page {
  width: min(560px, calc(100% - 48px));
  margin: 72px auto 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.state-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.state-page h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.state-page p {
  color: var(--text-secondary);
}

.state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

/* Sticky open-in-app strip on phones */
.app-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--divider);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

.app-bar-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.app-bar-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.app-bar-copy strong {
  font-size: 0.9375rem;
}

.app-bar-copy span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 70;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── Breadcrumbs ──────────────────────────────────────────────────────── */
.crumbs {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.crumbs li + li::before {
  content: "›";
  margin: 0 8px 0 4px;
  color: var(--text-tertiary);
}

.crumbs a {
  color: var(--text-secondary);
}

.crumbs a:hover {
  color: var(--text);
}

.crumbs li[aria-current] {
  color: var(--text);
  font-weight: 600;
}

.share-container > .crumbs {
  margin-bottom: -36px;
}

.crumbs-light,
.crumbs-light a,
.crumbs-light li + li::before {
  color: rgba(255, 255, 255, 0.75);
}

.crumbs-light li[aria-current],
.crumbs-light a:hover {
  color: #fff;
}

.place-hero .crumbs {
  margin-bottom: 18px;
}

/* ── Index pages (places, journeys) ───────────────────────────────────── */
.index-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.045em;
  font-weight: 800;
  margin-bottom: 12px;
}

.index-hero p {
  color: var(--text-secondary);
  max-width: 62ch;
  font-size: 1.0625rem;
}

.section-head.row {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.section-head.row > div p {
  margin-top: 6px;
}

.section-link {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.section-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-foot {
  margin-top: 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-count {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-left: 4px;
}

.jump-list {
  margin-top: -24px;
}

.country-section .section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
}

.country-flag {
  font-size: 1.5rem;
  line-height: 1;
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.place-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}

.place-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
}

.place-card-media {
  aspect-ratio: 16 / 10;
  background: var(--surface);
  overflow: hidden;
}

.place-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.place-card:hover .place-card-media img {
  transform: scale(1.04);
}

.place-card-body {
  padding: 12px 14px 14px;
}

.place-card-title {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.place-card-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.place-card-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* Country sections flow into columns so 100+ places fit on one screen or two. */
.country-list {
  columns: 3 260px;
  column-gap: 32px;
}

.country-list .country-section {
  break-inside: avoid;
  margin-bottom: 26px;
}

.country-list .section-head {
  margin-bottom: 10px;
}

.country-list .section-head h2 {
  font-size: 1.125rem;
}

.country-list .section-head p {
  font-size: 0.8125rem;
}

.place-rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.place-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--divider);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.place-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
  border-color: var(--text-tertiary);
}

.place-row-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.place-row-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.country-section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* Place page intro */
.place-intro p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 70ch;
}

/* ── Landing: popular places, FAQ ─────────────────────────────────────── */
.popular {
  padding: 56px 0 8px;
}

.faq {
  padding: 56px 0 16px;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 0 20px;
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text-tertiary);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--text-secondary);
  padding: 0 0 18px;
}

/* ── Content pages (about, help, legal) ───────────────────────────────── */
.page-hero {
  padding: 56px 0 28px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
  font-weight: 800;
}

.page-hero p {
  color: var(--text-secondary);
  max-width: 60ch;
}

.prose {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  margin-bottom: 88px;
}

.prose h2 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-secondary);
}

.prose p + p {
  margin-top: 12px;
}

.prose ul {
  padding-left: 1.2rem;
  list-style: disc;
  margin: 12px 0;
}

.prose a {
  color: var(--highlight);
  font-weight: 600;
}

.legal-prose h2 {
  margin-top: 2rem;
  font-size: 1.125rem;
}

.legal-prose hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 1.5rem 0;
}

.legal-prose strong {
  color: var(--text);
}

/* Auth bridge */
.auth-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-elevated);
}

.auth-card h1 {
  font-size: 1.375rem;
  margin: 18px 0 8px;
}

.auth-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto;
  border: 3px solid var(--divider);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 40px 0 44px;
  background: var(--card);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* ── Reveal ───────────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .route-line.is-animated {
    stroke-dashoffset: 0;
  }

  .route-pin.is-animated {
    opacity: 1;
  }
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-copy .store-row {
    justify-content: center;
  }

  .journey-card-hero {
    transform: none;
    max-width: 480px;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .share-hero,
  .post-layout {
    grid-template-columns: 1fr;
  }

  .share-aside,
  .post-aside {
    position: static;
  }

  .cta-panel {
    padding: 36px 28px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .hero {
    padding: 44px 0 48px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--header-h) - 6px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border: 1px solid var(--divider);
    border-radius: var(--radius-xl);
    padding: 8px;
    box-shadow: var(--shadow-elevated);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    margin: 6px 0 0;
  }

  .store-badge {
    width: 100%;
    max-width: 320px;
  }

  .store-row-stack .store-badge {
    max-width: none;
  }

  .prose {
    padding: 28px 22px;
  }

  .share-main {
    padding-top: 20px;
  }

  .share-container {
    gap: 40px;
  }

  .journey-card {
    padding: 22px 20px 20px;
  }

  .app-bar {
    display: flex;
  }

  body.has-app-bar {
    padding-bottom: 84px;
  }

  .place-hero {
    margin-top: -20px;
    min-height: 320px;
  }

  .place-hero-inner {
    padding-top: 90px;
  }

  .post-photo img {
    max-height: 70vh;
  }
}

/* ==========================================================================
   Landing: conversion layer — screenshots, platform-aware store badges, QR
   card, journey spotlight, sticky "Get" bar. html.platform-ios|android|desktop
   is set before first paint (index.html) and again by js/home.js.
   ========================================================================== */

/* ── Hero: headline, store badges + QR card ───────────────────────────── */
.hero-copy h1 {
  font-size: clamp(2.5rem, 4.7vw, 3.75rem);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Desktop: the two badges stack beside the QR card so the row fits the column. */
.hero-cta .store-row {
  flex-direction: column;
  gap: 10px;
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 10px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.qr-card-code {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  /* The SVG carries its own white quiet zone, which also keeps it scannable in dark mode. */
  background: #fff;
}

.qr-card-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--text-secondary);
}

.qr-card-copy strong {
  font-size: 0.9375rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-note {
  text-wrap: balance;
}

/* Phones and tablets scan nothing: hide the QR card. */
html.platform-ios .qr-card,
html.platform-android .qr-card {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .qr-card {
    display: none;
  }
}

/* Phones: their own store is the primary action, the other stays as a quieter option. */
html.platform-ios .hero-cta .store-row,
html.platform-android .hero-cta .store-row {
  align-items: flex-start;
  gap: 10px;
}

html.platform-android .store-badge-android,
html.platform-ios .store-badge-ios {
  order: -1;
}

html.platform-ios .hero-download .store-badge-ios,
html.platform-android .hero-download .store-badge-android {
  min-width: 240px;
  padding: 14px 24px;
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px var(--brand-shadow);
}

html.platform-ios .hero-download .store-badge-ios:hover,
html.platform-android .hero-download .store-badge-android:hover {
  border-color: transparent;
}

html.platform-ios .hero-download .store-badge-ios .store-badge-copy small,
html.platform-android .hero-download .store-badge-android .store-badge-copy small {
  color: rgba(255, 255, 255, 0.78);
}

html.platform-ios .hero-download .store-badge-ios .store-badge-copy strong,
html.platform-android .hero-download .store-badge-android .store-badge-copy strong {
  font-size: 1.1875rem;
}

html.platform-ios .hero-download .store-badge-ios .store-badge-icon,
html.platform-android .hero-download .store-badge-android .store-badge-icon {
  width: 30px;
  height: 30px;
}

html.platform-ios .hero-download .store-badge-android,
html.platform-android .hero-download .store-badge-ios {
  min-width: 0;
  padding: 8px 16px;
  gap: 10px;
  background: transparent;
  box-shadow: none;
}

html.platform-ios .hero-download .store-badge-android .store-badge-icon,
html.platform-android .hero-download .store-badge-ios .store-badge-icon {
  width: 20px;
  height: 20px;
}

html.platform-ios .hero-download .store-badge-android .store-badge-copy small,
html.platform-android .hero-download .store-badge-ios .store-badge-copy small {
  font-size: 0.625rem;
}

html.platform-ios .hero-download .store-badge-android .store-badge-copy strong,
html.platform-android .hero-download .store-badge-ios .store-badge-copy strong {
  font-size: 0.9375rem;
}

/* Closing CTA on phones: matching store first and brightest, the other still there. */
html.platform-ios .cta-panel .store-badge-ios,
html.platform-android .cta-panel .store-badge-android {
  background: #fff;
  border-color: #fff;
  color: var(--primary);
}

html.platform-ios .cta-panel .store-badge-ios .store-badge-copy small,
html.platform-android .cta-panel .store-badge-android .store-badge-copy small {
  color: #4b5563;
}

html.platform-ios .cta-panel .store-badge-ios:hover,
html.platform-android .cta-panel .store-badge-android:hover {
  border-color: #fff;
}

/* ── Hero: app screenshots ────────────────────────────────────────────── */
/* Desktop: three screens fanned out beside the copy. */
.shots {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1.1;
}

.shots-list {
  position: absolute;
  inset: 0;
}

.shot {
  position: absolute;
  border-radius: 26px;
  overflow: hidden;
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-journey);
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 1300;
}

.shot-1 {
  width: 46%;
  left: 27%;
  top: 0;
  z-index: 3;
}

.shot-2 {
  width: 40%;
  left: 0;
  top: 11%;
  z-index: 1;
  transform: rotate(-5deg);
}

.shot-3 {
  width: 40%;
  right: 0;
  top: 11%;
  z-index: 2;
  transform: rotate(5deg);
}

.shot-4,
.shot-5,
.shot-6 {
  display: none;
}

.shots:focus-visible {
  outline-offset: 2px;
  border-radius: var(--radius-lg);
}

/* ── Landing: journey spotlight ───────────────────────────────────────── */
.spotlight {
  padding: 24px 0 56px;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.spotlight-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.spotlight-copy p {
  color: var(--text-secondary);
  max-width: 46ch;
}

.spotlight-copy .spotlight-note {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.spotlight-copy .section-link {
  display: inline-block;
  margin-top: 18px;
}

.spotlight-journey {
  display: flex;
  justify-content: center;
}

/* ── Landing: "all places" tile that completes the popular grid ───────── */
.place-card-more {
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 18px 16px;
  background: var(--surface);
  box-shadow: none;
}

.place-card-more-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
}

.place-card-more-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.place-card-more-copy strong {
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ── Sticky "Get" bar (home page, phones) ─────────────────────────────── */
/* .app-bar supplies the look and only displays at <=720px. */
.home-bar {
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
}

.home-bar.is-visible {
  transform: none;
  visibility: visible;
  transition: transform 0.28s ease, visibility 0s;
}

.home-bar .btn {
  flex-shrink: 0;
  min-width: 76px;
}

/* ── Landing: responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    --gutter: 24px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 16px;
  }

  .hero-download {
    width: 100%;
  }

  .hero-cta .store-row {
    align-items: center;
    width: 100%;
  }

  html.platform-ios .hero-cta .store-row,
  html.platform-android .hero-cta .store-row {
    align-items: center;
  }

  .hero-visual {
    display: block;
    width: 100%;
  }

  .hero-visual::before {
    display: none;
  }

  /* Screens become a horizontal scroll-snap strip that bleeds to the screen edge. */
  .shots {
    width: auto;
    max-width: none;
    aspect-ratio: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 30px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .shots::-webkit-scrollbar {
    display: none;
  }

  .shots-list {
    position: static;
    display: flex;
    gap: 14px;
    width: max-content;
  }

  .shot,
  .shot-1,
  .shot-2,
  .shot-3 {
    position: static;
    flex: 0 0 auto;
    width: clamp(176px, 52vw, 250px);
    transform: none;
    scroll-snap-align: start;
  }

  .shot-4,
  .shot-5,
  .shot-6 {
    display: block;
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .spotlight-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 720px) {
  .hero {
    --gutter: 16px;
  }

  .hero-copy h1 {
    margin: 14px 0 14px;
    font-size: clamp(1.9rem, 8.7vw, 2.5rem);
  }

  .hero-lede {
    font-size: 1.0625rem;
  }

  .hero-download {
    margin-top: 24px;
  }

  .hero-note {
    display: none;
  }

  .spotlight {
    padding: 8px 0 40px;
  }

  /* Room for the fixed bar so it never hides the footer; the footer's own
     background carries the extra space. */
  body.has-home-bar .site-footer {
    padding-bottom: calc(44px + 72px + env(safe-area-inset-bottom));
  }

  html.platform-ios .hero-download .store-badge-ios,
  html.platform-android .hero-download .store-badge-android {
    width: 100%;
    max-width: 320px;
  }

  html.platform-ios .hero-download .store-badge-android,
  html.platform-android .hero-download .store-badge-ios {
    width: auto;
    max-width: none;
  }
}
