/* CanadaLife.ai — contemporary Canadian
   Type: system sans-first (Inter when available), serif only as accent
   Palette: warm paper, deep ink, refined maple/forest/lake/slate
*/

:root {
  --paper:    #f5f3ec;
  --paper-2:  #ebe7d9;
  --snow:     #fafaf5;
  --line:     #e0dccf;
  --line-2:   #cdc7b4;

  --ink:      #14140d;
  --ink-2:    #2c2a23;
  --ink-3:    #50504a;
  --muted:    #74746a;
  --slate:    #5b5b50;

  --maple:    #8c2a32;
  --maple-2:  #6b1f26;
  --maple-soft: rgba(140, 42, 50, 0.08);

  --forest:   #2c4736;
  --lake:     #2a4f6a;
  --aurora:   #594588;
  --sand:     #a47836;
  --gold:     #b88a3a;

  --shadow-1: 0 1px 2px rgba(20, 20, 13, 0.04), 0 4px 14px rgba(20, 20, 13, 0.06);
  --shadow-2: 0 10px 40px rgba(20, 20, 13, 0.12);

  --radius-s: 8px;
  --radius:   12px;
  --radius-l: 18px;

  --maxw:     1280px;

  --sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, ui-sans-serif, system-ui, sans-serif;
  --serif:    ui-serif, 'Iowan Old Style', 'Charter', Georgia, serif;
  --mono:     ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* Force light color scheme. Dark mode disabled for now to keep the demo legible everywhere. */
:root { color-scheme: light; }
html { background: #f5f3ec; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--maple); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--maple); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(36px, 5.5vw, 64px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1;  letter-spacing: -0.025em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
h4 { font-size: 14px; letter-spacing: 0; }

p  { margin: 0; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 24px; height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 55%, transparent 32%, var(--maple) 33%);
  box-shadow: inset 0 0 0 1.5px var(--maple);
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute; inset: 5px;
  border-radius: 50%;
  background: var(--maple);
  opacity: 0.9;
  transform: scale(0.6);
}
.brand-name {
  font-family: var(--sans);
  font-weight: 600; font-size: 17px; letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-dot { color: var(--maple); }
.nav { display: flex; gap: 26px; font-size: 14px; }
.nav a { color: var(--ink-2); font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: 80px 32px 36px;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.hero h1 { max-width: 16ch; }
.hero p {
  max-width: 60ch;
  font-size: 18px;
  color: var(--ink-3);
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maple);
  margin: 0;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--maple);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .08s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--snow); }
.btn-primary:hover { background: var(--maple); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- AI strip ---------- */
.ai-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.ai-strip-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.ai-feat {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px;
  align-items: start;
}
.ai-icon {
  grid-row: 1 / span 2;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--maple-soft);
  color: var(--maple);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  margin-top: 2px;
}
.ai-feat h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.ai-feat p  { color: var(--ink-3); font-size: 13px; line-height: 1.5; }

/* ---------- Map section ---------- */
.map-section {
  max-width: var(--maxw); margin: 32px auto 0;
  padding: 0 32px 80px;
}

/* Frame holds map + floating overlays */
.map-frame {
  position: relative;
  margin-top: 16px;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  background: var(--paper-2);
}

/* AI prompt row */
.prompt-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.prompt-label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-right: 4px;
}
.prompt {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-2);
  padding: 7px 13px;
  border-radius: 999px;
  font: 500 13px var(--sans);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.prompt:hover { border-color: var(--ink); color: var(--ink); }
.prompt.is-active {
  background: var(--ink); color: var(--snow);
  border-color: var(--ink);
}

/* Floating control overlays inside .map-frame */
.map-overlay {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}
.map-overlay > * { pointer-events: auto; }

.map-overlay-top {
  top: 14px; left: 14px; right: 14px;
  display: grid; gap: 8px;
}
.overlay-row {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.overlay-row-tight { gap: 8px; }

.map-overlay-bottom {
  position: absolute;
  bottom: 14px; left: 14px;
  background: color-mix(in srgb, var(--snow) 92%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  padding: 6px 10px 6px 6px;
  font: 13px var(--sans);
  color: var(--ink-2);
  max-width: calc(100% - 28px);
}
.map-overlay-bottom > summary {
  list-style: none;
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer;
  padding: 2px 6px 2px 0;
  user-select: none;
}
.map-overlay-bottom > summary::-webkit-details-marker { display: none; }
.dates-summary { font-weight: 600; color: var(--ink); font-feature-settings: "tnum"; }
.dates-caret { color: var(--muted); transition: transform .15s ease; display: inline-block; }
.map-overlay-bottom[open] .dates-caret { transform: rotate(180deg); }
.map-overlay-bottom .dates-body {
  margin-top: 10px;
  padding: 4px 4px 8px;
  display: grid; gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.dates-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.dates-inputs { display: flex; flex-wrap: wrap; gap: 12px; }
.dates-inputs label {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 11px var(--sans); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.dates-inputs input[type="date"] {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; background: var(--snow); color: var(--ink);
  font: 13px var(--sans); font-feature-settings: "tnum";
  outline: none;
}

.events-pill {
  display: inline-flex; align-items: center;
  border-radius: 999px;
  background: var(--maple); color: #fff;
  padding: 2px;
}
.events-pill .events-toggle { background: transparent; border: 0; color: #fff; padding: 5px 11px; }
.events-pill .events-toggle .dot { background: #fff; }
.events-toggle:not(.is-on) {
  background: var(--snow); color: var(--ink-2);
  border: 1px solid var(--line);
}
.events-toggle:not(.is-on) .dot { background: var(--muted); }

.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--snow) 92%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  color: var(--ink-2);
  font: 500 13px var(--sans);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-1);
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--snow); border-color: var(--ink); }

.search { position: relative; flex: 1 1 320px; min-width: 240px; max-width: 560px; }
.search input {
  width: 100%;
  padding: 11px 16px 11px 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--snow) 95%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  font: 14px var(--sans); color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: var(--shadow-1);
}
.search input:focus { border-color: var(--ink); background: var(--snow); box-shadow: 0 0 0 4px rgba(140,42,50,0.12), var(--shadow-1); }
.search::before {
  content: '';
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}
.search::after {
  content: '';
  position: absolute;
  left: 24px; top: 50%; transform: translateY(2px) rotate(45deg);
  width: 6px; height: 1.5px; background: var(--muted);
}
.search-ai {
  position: absolute;
  left: 18px; right: 16px; bottom: -22px;
  font: 12px var(--sans);
  color: var(--maple);
  pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(245,243,236,0.9);
}
.search-ai.is-on::before { content: '◈ '; }

.events-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 13px var(--sans);
  color: inherit;
  cursor: pointer;
  border-radius: 999px;
}
.events-toggle .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  transition: background .15s ease;
}

.count {
  display: inline-flex; align-items: center;
  font: 600 12px var(--sans); color: var(--ink-2);
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-feature-settings: "tnum";
  padding: 7px 12px;
  background: color-mix(in srgb, var(--snow) 92%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
}

#mapview {
  position: relative;
  width: 100%;
  height: min(82vh, 820px);
  background: var(--paper-2);
}

/* MapLibre cooperative-gestures hint reskin */
.maplibregl-cooperative-gesture-screen {
  background: rgba(20,20,13,0.55) !important;
  color: var(--snow) !important;
  font-family: var(--sans) !important;
}

/* MapLibre tweaks */
.maplibregl-popup-content {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-family: var(--sans);
  box-shadow: var(--shadow-2);
}
.maplibregl-popup-content h4 { margin: 0 0 4px; font-size: 14px; }
.maplibregl-popup-content p  { margin: 0; font-size: 13px; color: var(--muted); }

/* Detail panel — desktop side card, mobile bottom sheet */
.panel {
  position: absolute;
  top: 110px; right: 14px;
  width: min(400px, calc(100% - 28px));
  max-height: calc(100% - 140px);
  overflow-y: auto;
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 24px 24px 20px;
  transform: translateX(20px);
  opacity: 0; pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
  z-index: 6;
}
.panel.is-open { transform: translateX(0); opacity: 1; pointer-events: auto; }
@media (max-width: 720px) {
  .panel {
    top: auto; right: 0; left: 0;
    bottom: 0;
    width: 100%;
    max-height: 70%;
    border-radius: 18px 18px 0 0;
    transform: translateY(20px);
    border-bottom: 0;
  }
  .panel.is-open { transform: translateY(0); }
}
.panel-close {
  position: absolute; top: 12px; right: 14px;
  border: 0; background: transparent; font-size: 24px; line-height: 1;
  color: var(--muted); padding: 4px 8px; border-radius: 6px;
}
.panel-close:hover { color: var(--ink); background: var(--paper-2); }

.panel h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.panel .where {
  font: 500 11px var(--sans);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.panel .sub {
  font: 600 12px var(--sans);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--maple); margin: 0 0 8px;
}
.panel .desc { font-size: 15px; color: var(--ink-2); margin: 0 0 16px; line-height: 1.55; }
.panel .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.panel .tag {
  font: 500 11px var(--sans);
  background: var(--paper-2); color: var(--ink-2);
  padding: 4px 9px; border-radius: 999px;
}
.panel .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.panel .similar { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.panel .similar-h {
  font: 600 11px var(--sans);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--maple); margin-bottom: 10px;
}
.panel .similar-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.panel .similar-list a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  background: var(--paper-2);
  font: 13px var(--sans);
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.panel .similar-list a:hover { background: var(--ink); color: var(--snow); }
.panel .similar-list strong { font-weight: 600; }
.panel .similar-list span { color: var(--muted); }
.panel .similar-list a:hover span { color: rgba(255,255,255,0.85); }

/* Event-specific panel meta */
.panel .event-when {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12px var(--sans);
  padding: 5px 10px; border-radius: 999px;
  background: var(--maple-soft); color: var(--maple);
  margin-bottom: 12px;
}

/* ---------- Collections ---------- */
.collections {
  max-width: var(--maxw); margin: 80px auto 0;
  padding: 0 32px;
}
.collections h2 { margin: 0 0 24px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.card {
  display: block;
  padding: 22px;
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
@media (prefers-color-scheme: dark) { .card { background: var(--paper-2); } }
.card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: var(--shadow-1);
}
.card-eyebrow {
  font: 600 11px var(--sans);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--maple); display: block; margin-bottom: 12px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.25; }
.card p { color: var(--ink-3); font-size: 14px; }

/* ---------- CTA ---------- */
.cta {
  margin: 96px 0 0;
  background: var(--ink);
  color: var(--snow);
}
.cta-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 80px 32px;
  text-align: center;
}
.cta h2 { color: var(--snow); margin: 0 0 14px; max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta p {
  max-width: 600px; margin: 0 auto 22px;
  color: rgba(245, 243, 236, 0.7);
}
.cta .btn-primary { background: var(--snow); color: var(--ink); }
.cta .btn-primary:hover { background: var(--maple); color: #fff; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.footer .muted { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.footer .small { font-size: 12px; text-align: right; color: var(--muted); }
.footer nav { display: flex; gap: 20px; font-size: 14px; }
.footer nav a { color: var(--ink-3); }
.footer nav a:hover { color: var(--maple); }

/* ---------- Hamburger nav ---------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 42px; height: 42px;
  border-radius: 10px;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle:hover { background: var(--paper-2); }

@media (max-width: 760px) {
  /* Topbar */
  .topbar { padding: 12px 16px; position: sticky; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: calc(100% + 6px);
    right: 16px;
    background: var(--snow);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-2);
    padding: 10px;
    flex-direction: column;
    gap: 2px;
    min-width: 200px;
    display: none;
    z-index: 60;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
    min-height: 44px;
    display: flex; align-items: center;
    color: var(--ink-2);
  }
  .nav a:hover, .nav a:active { background: var(--paper-2); color: var(--ink); }

  /* Hero */
  .hero { padding: 36px 18px 24px; gap: 16px; }
  .hero h1 { font-size: clamp(32px, 8vw, 42px); }
  .hero p { font-size: 16px; }
  .hero-actions { gap: 8px; }
  .btn { padding: 12px 20px; font-size: 14px; min-height: 44px; }
  .eyebrow { font-size: 10px; margin-bottom: 8px; }

  /* AI strip: more compact */
  .ai-strip-inner { padding: 22px 18px; gap: 18px; }
  .ai-feat h4 { font-size: 14px; }
  .ai-feat p { font-size: 13px; }

  /* Map section */
  .map-section { padding: 0 12px 48px; }
  #mapview { height: min(64vh, 520px); }

  /* Prompt row: horizontal scroll instead of wrapping into 3 rows */
  .prompt-row {
    margin: 0 -12px;
    padding: 14px 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .prompt-row::-webkit-scrollbar { display: none; }
  .prompt-row .prompt-label { display: none; }
  .prompt {
    flex-shrink: 0;
    padding: 9px 14px;
    font-size: 13px;
    min-height: 38px;
  }

  /* Map overlay top: stack vertically so search is full width and chips scroll horizontally */
  .map-overlay-top { left: 10px; right: 10px; top: 10px; gap: 8px; }
  .overlay-row { gap: 8px; }
  .overlay-row .search { flex: 1 1 100%; max-width: none; }
  .overlay-row-tight { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; margin: 0 -4px; padding-left: 4px; padding-right: 4px; }
  .overlay-row-tight::-webkit-scrollbar { display: none; }
  .filters { flex-wrap: nowrap; gap: 6px; }
  .chip { flex-shrink: 0; padding: 9px 14px; font-size: 13px; min-height: 38px; }
  .count { font-size: 11px; padding: 7px 10px; }
  .search input { padding: 12px 16px 12px 40px; font-size: 15px; }
  /* Shorter mobile placeholder via attribute selector + content swap is not possible without JS;
     we just rely on truncation of the existing placeholder via overflow */

  /* Map overlay bottom (date pill): full width row with nicer wrapping */
  .map-overlay-bottom { left: 10px; bottom: 10px; right: 10px; max-width: none; padding: 8px 10px; }
  .map-overlay-bottom > summary { flex-wrap: wrap; gap: 8px; }
  .dates-quick { gap: 6px; }
  .dates-quick .prompt { padding: 8px 12px; min-height: 36px; }
  .dates-inputs { flex-direction: column; gap: 8px; }
  .dates-inputs label { flex-direction: column; align-items: flex-start; gap: 4px; }
  .dates-inputs input[type="date"] { width: 100%; padding: 10px 14px; min-height: 42px; }

  /* Cards / collections / pricing */
  .collections { margin-top: 40px; padding: 0 18px; }
  .collections h2 { font-size: 26px; }
  .cards { gap: 10px; }
  .card { padding: 18px; }
  .card h3 { font-size: 17px; }
  .card p { font-size: 13px; }

  /* CTA */
  .cta-inner { padding: 56px 20px; }
  .cta h2 { font-size: clamp(24px, 7vw, 32px); }

  /* Footer */
  .footer-inner { padding: 28px 20px; grid-template-columns: 1fr; text-align: left; gap: 16px; }
  .footer .small { text-align: left; }
  .footer nav { flex-wrap: wrap; gap: 14px; }

  /* Page chrome */
  .page { padding: 40px 20px 64px; }
  .page h1 { font-size: clamp(28px, 7vw, 36px); }
  .page h2 { font-size: 20px; }
  .page p, .page li { font-size: 15px; }
  .tier-grid, .price-grid, .rev-grid { gap: 10px; }

  /* Pricing specifics */
  .pricing { padding-top: 32px; }
  .billing-toggle { margin: 18px 0 6px; }
  .price-card { padding: 20px; }
  .price-card .amount { font-size: 30px; }
  .price-card-popular .popular-flag { top: -10px; left: 16px; font-size: 10px; }

  /* Planner */
  .planner-form { padding: 18px; gap: 10px; }
  .planner-grid { grid-template-columns: 1fr; gap: 10px; }
  .day { padding: 18px; }
  .day h3 { font-size: 18px; }

  /* Detail panel mobile bottom sheet refinements */
  .panel { top: auto; right: 0; left: 0; bottom: 0; width: 100%; max-height: 75%; border-radius: 18px 18px 0 0; padding: 22px 22px 28px; }
  .panel h3 { font-size: 20px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 30px; letter-spacing: -0.03em; }
  .nav { right: 12px; min-width: 180px; }
  .topbar { padding: 10px 14px; }
  .brand-name { font-size: 16px; }
  .price-card .amount { font-size: 26px; }
}

/* ---------- Page chrome ---------- */
.page { max-width: 800px; margin: 0 auto; padding: 64px 32px 96px; }
.page h1 { margin: 0 0 18px; }
.page h2 { margin-top: 40px; }
.page p, .page li { font-size: 16px; color: var(--ink-2); line-height: 1.7; }
.page ul { padding-left: 22px; }
.tier-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin: 18px 0 32px;
}
.tier {
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
@media (prefers-color-scheme: dark) { .tier { background: var(--paper-2); } }
.tier h3 { margin: 0 0 6px; font-size: 18px; }
.tier .price {
  font: 600 12px var(--sans);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--maple);
}
.tier ul { padding-left: 18px; margin: 12px 0 0; }
.tier li { font-size: 14px; }

.form { margin-top: 24px; display: grid; gap: 12px; }
.form label { font: 13px var(--sans); color: var(--ink-2); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  font: 15px var(--sans); background: var(--snow); color: var(--ink);
  outline: none;
}
@media (prefers-color-scheme: dark) {
  .form input, .form select, .form textarea { background: var(--paper-2); }
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }

/* ---------- AI Planner ---------- */
.planner { max-width: 920px; }
.planner-form {
  display: grid; gap: 14px;
  margin-top: 24px;
  padding: 24px;
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (prefers-color-scheme: dark) { .planner-form { background: var(--paper-2); } }
.planner-label { display: grid; gap: 6px; font: 13px var(--sans); color: var(--ink-2); }
.planner-form textarea, .planner-form select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  font: 15px var(--sans); background: var(--snow); color: var(--ink);
  outline: none;
}
@media (prefers-color-scheme: dark) {
  .planner-form textarea, .planner-form select { background: var(--paper); }
}
.planner-form textarea { min-height: 92px; resize: vertical; }
.planner-form textarea:focus, .planner-form select:focus { border-color: var(--ink); }
.planner-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.planner-grid label { display: grid; gap: 6px; font: 13px var(--sans); color: var(--ink-2); }

.plan-result { margin-top: 32px; }
.plan-head {
  margin-bottom: 18px;
  padding: 16px 18px;
  background: var(--maple-soft);
  border: 1px dashed rgba(140, 42, 50, 0.3);
  border-radius: var(--radius);
}
.plan-understood {
  font: 600 12px var(--sans);
  letter-spacing: 0.06em;
  color: var(--maple); margin-bottom: 6px;
}
.plan-brief { font: 15px var(--sans); color: var(--ink-2); }
.plan-days { display: grid; gap: 18px; }
.day {
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
@media (prefers-color-scheme: dark) { .day { background: var(--paper-2); } }
.day h3 { margin: 0 0 14px; font-size: 20px; }
.stops { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.stop {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper);
}
.stop-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.stop-head strong { font: 600 16px var(--sans); }
.stop-cat {
  font: 600 10px var(--sans);
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  color: #fff;
  background: var(--slate);
}
.stop-cat[data-cat="food"]        { background: var(--maple); }
.stop-cat[data-cat="hospitality"] { background: var(--forest); }
.stop-cat[data-cat="nature"]      { background: var(--forest); }
.stop-cat[data-cat="culture"]     { background: var(--aurora); }
.stop-cat[data-cat="lifestyle"]   { background: var(--sand); }
.stop-cat[data-cat="event"]       { background: var(--lake); }
.stop-where {
  font: 500 12px var(--sans);
  letter-spacing: 0.04em;
  color: var(--muted); margin-bottom: 4px;
}
.stop-desc {
  font: 14px var(--sans);
  color: var(--ink-2); line-height: 1.55;
}

.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------- Pricing page ---------- */
.pricing { max-width: 1100px; }
.pricing .lede { font-size: 18px; color: var(--ink-3); max-width: 60ch; }
.pricing .section-h { margin-top: 56px; }
.pricing .section-p { color: var(--ink-3); margin-bottom: 16px; max-width: 60ch; }

.billing-toggle {
  display: inline-flex;
  margin: 28px 0 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--snow);
}
.bill {
  border: 0;
  background: transparent;
  font: 600 14px var(--sans);
  color: var(--ink-2);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.bill.is-active { background: var(--ink); color: var(--snow); }
.bill .save {
  font: 600 10px var(--sans); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--maple);
  background: var(--maple-soft);
  padding: 2px 8px; border-radius: 999px;
}
.bill.is-active .save { background: rgba(255,255,255,0.15); color: #fff; }

.price-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 16px;
}
.price-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 720px; }

.price-card {
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
@media (prefers-color-scheme: dark) { .price-card { background: var(--paper-2); } }
.price-card header { display: grid; gap: 6px; }
.price-card .tier-name {
  font: 600 12px var(--sans);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--maple);
}
.price-card .price { display: flex; align-items: baseline; gap: 8px; }
.price-card .amount {
  font: 700 36px var(--sans);
  letter-spacing: -0.03em;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.price-card .per { font: 13px var(--sans); color: var(--muted); }
.price-card .tier-sub { font: 14px var(--sans); color: var(--ink-3); margin: 0; }
.price-features {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
  flex: 1;
}
.price-features li {
  font: 14px var(--sans); color: var(--ink-2); line-height: 1.45;
  padding-left: 22px; position: relative;
}
.price-features li::before {
  content: '';
  position: absolute; left: 4px; top: 7px;
  width: 10px; height: 6px;
  border-left: 1.5px solid var(--maple);
  border-bottom: 1.5px solid var(--maple);
  transform: rotate(-45deg);
}
.price-card .btn { align-self: stretch; }

.price-card-popular {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--maple-soft), var(--shadow-1);
}
.price-card-popular .popular-flag {
  position: absolute; top: -10px; left: 24px;
  font: 600 11px var(--sans);
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--ink); color: var(--snow);
  padding: 4px 10px;
  border-radius: 999px;
}
.price-card-iconic { background: var(--ink); color: var(--snow); border-color: var(--ink); }
.price-card-iconic .tier-name { color: var(--gold); }
.price-card-iconic .amount { color: var(--snow); }
.price-card-iconic .tier-sub, .price-card-iconic .per { color: rgba(245,243,236,0.7); }
.price-card-iconic .price-features li { color: rgba(245,243,236,0.92); }
.price-card-iconic .price-features li::before { border-color: var(--gold); }
.price-card-iconic .btn-ghost { border-color: rgba(245,243,236,0.35); color: var(--snow); }
.price-card-iconic .btn-ghost:hover { background: rgba(245,243,236,0.1); border-color: var(--snow); }

.price-card-insider header { background: linear-gradient(180deg, var(--maple-soft), transparent 60%); margin: -24px -24px 0; padding: 24px; border-radius: var(--radius) var(--radius) 0 0; }

.rev-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 16px 0 8px;
}
.rev {
  padding: 22px;
  background: var(--paper-2);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.rev h3 { font-size: 16px; margin: 0 0 8px; }
.rev p { font: 14px var(--sans); color: var(--ink-3); line-height: 1.55; }

.note-box {
  margin-top: 24px;
  padding: 22px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: transparent;
}
.note-box h3 { font-size: 16px; margin: 0 0 10px; }
.note-box ul { margin: 0; padding-left: 20px; }
.note-box li { font: 14px var(--sans); color: var(--ink-2); }

@media (max-width: 720px) {
  .price-card-popular { box-shadow: 0 0 0 2px var(--maple-soft), var(--shadow-1); }
}

/* ---------- Global section (homepage) ---------- */
.global {
  margin: 96px 0 0;
  background: var(--ink);
  color: var(--snow);
  overflow: hidden;
  position: relative;
}
.global-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 96px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
@media (min-width: 980px) {
  .global-inner { grid-template-columns: 1fr 1fr; }
}

.global h2 { color: var(--snow); max-width: 18ch; }
.global p { color: rgba(245,243,236,0.72); max-width: 56ch; font-size: 17px; line-height: 1.6; }
.global .eyebrow { color: var(--gold); }
.global .eyebrow::before { background: var(--gold); }

.country-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.country-list li {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 13px var(--sans);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245,243,236,0.18);
  color: rgba(245,243,236,0.9);
  background: rgba(245,243,236,0.04);
}
.country-list li.is-live {
  border-color: var(--maple);
  background: rgba(140,42,50,0.18);
  color: #fff;
}
.country-list li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(245,243,236,0.4);
}
.country-list li.is-live::before {
  background: var(--maple);
  box-shadow: 0 0 0 4px rgba(140,42,50,0.35);
}
.country-list .domain {
  color: rgba(245,243,236,0.5);
  font-feature-settings: "tnum";
}

.domains-line {
  margin-top: 22px;
  font: 13px var(--mono);
  color: rgba(245,243,236,0.45);
  letter-spacing: 0;
}
.domains-line strong { color: var(--snow); font-weight: 600; }

/* Globe */
.globe-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%; max-width: 460px;
  justify-self: center;
}
.globe-stars {
  position: absolute; inset: -40px;
  background:
    radial-gradient(1.5px 1.5px at 22% 18%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 78% 28%, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(1.2px 1.2px at 14% 72%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1px 1px at 88% 64%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1.2px 1.2px at 64% 14%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1px 1px at 36% 84%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1.4px 1.4px at 92% 92%, rgba(255,255,255,0.5), transparent 50%);
  pointer-events: none;
}
.globe {
  position: absolute; inset: 8%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #2a4f6a 0%, #1c3a52 40%, #0a1a28 90%);
  box-shadow:
    inset -20px -30px 80px rgba(0,0,0,0.55),
    inset 12px 12px 40px rgba(255,255,255,0.06),
    0 30px 80px rgba(42, 79, 106, 0.35);
}
.globe-rotor {
  position: absolute; inset: 0;
  animation: globe-spin 60s linear infinite;
  will-change: transform;
}
.globe-rotor svg {
  position: absolute; top: 0; left: 0;
  width: 200%; height: 100%;
}
@keyframes globe-spin {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.globe-shine {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,0.25), transparent 36%),
    radial-gradient(circle at 80% 78%, rgba(0,0,0,0.5), transparent 50%);
  pointer-events: none;
}
.globe-pin {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(245,243,236,0.6);
  box-shadow: 0 0 0 3px rgba(245,243,236,0.15);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.globe-pin.is-live {
  width: 12px; height: 12px;
  background: var(--maple);
  box-shadow: 0 0 0 5px rgba(140,42,50,0.35), 0 0 0 11px rgba(140,42,50,0.15);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(140,42,50,0.55), 0 0 0 5px rgba(140,42,50,0.18); }
  70%  { box-shadow: 0 0 0 14px rgba(140,42,50,0), 0 0 0 5px rgba(140,42,50,0); }
  100% { box-shadow: 0 0 0 0 rgba(140,42,50,0), 0 0 0 5px rgba(140,42,50,0); }
}
.globe-pin .label {
  position: absolute;
  top: 16px; left: 14px;
  font: 600 11px var(--sans);
  letter-spacing: 0.06em;
  color: rgba(245,243,236,0.9);
  background: rgba(20,20,13,0.6);
  border: 1px solid rgba(245,243,236,0.14);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.globe-pin.is-live .label { color: #fff; background: var(--maple); border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .globe-rotor { animation: none; }
  .globe-pin.is-live { animation: none; }
}
