/* Passim — passimexplore.com
 *
 * Two palettes alternating down the page: navy where the photography carries
 * the mood, cream where the reading happens. Amber is the only accent in
 * either, so it always means "this is the thing to press". */

:root {
  --navy: #0A2342;
  --navy-deep: #071A2F;
  --amber: #FFC21A;
  --cream: #FAF6EE;
  --ink: #16202E;          /* body text on cream */
  --ink-soft: #5A6779;
  --on-dark: #F4EFE4;
  --on-dark-dim: #A9B6C6;
  --line-dark: rgba(255, 255, 255, .12);
  --line-light: rgba(22, 32, 46, .12);
  --wrap: 1180px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
svg { fill: currentColor; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; background: var(--amber); color: var(--navy-deep); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 16px; top: 16px; z-index: 60; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

/* ── brand lockup ───────────────────────────────── */
/* The real wordmark, pin above type. It is drawn in white and amber, so it
   only ever sits on the navy — never on the cream bands. */
.brand { display: inline-flex; text-decoration: none; }
.brand img { width: 118px; height: auto; }
.brand.small img { width: 92px; }
@media (max-width: 560px) { .brand img { width: 96px; } }

/* ── nav ────────────────────────────────────────── */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 32px;
  width: min(100% - 40px, var(--wrap)); margin-inline: auto;
  padding: 22px 0;
}
.nav-links { display: flex; gap: 30px; margin-inline: auto; }
.nav-links a { color: var(--on-dark); text-decoration: none; font-size: 15px; font-weight: 500; opacity: .9; }
.nav-links a:hover { color: var(--amber); opacity: 1; }

.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; text-decoration: none; font-weight: 700; transition: transform .18s, box-shadow .18s; }
.btn-amber { background: var(--amber); color: var(--navy-deep); padding: 12px 24px; font-size: 15px; }
.btn-amber:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 194, 26, .3); }

@media (max-width: 900px) { .nav-links { display: none; } .nav { justify-content: space-between; } }
@media (max-width: 560px) { .nav-cta { display: none; } }

/* ── hero ───────────────────────────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0; z-index: -1;
  background: url('/assets/palma-hero.webp') center right / cover no-repeat;
}
/* The copy sits on the left, so the scrim is heaviest there and lets the
   cathedral keep its light on the right. */
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, var(--navy-deep) 8%, rgba(10,35,66,.86) 38%, rgba(10,35,66,.30) 70%, rgba(10,35,66,.08) 100%),
    linear-gradient(180deg, rgba(7,26,47,.55) 0%, transparent 28%, rgba(7,26,47,.35) 100%);
}

.hero-grid {
  width: min(100% - 40px, var(--wrap)); margin-inline: auto;
  /* The phone column grew; the copy keeps its own measure rather than
     stretching to fill whatever is left. */
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: 40px; align-items: center;
  padding: 136px 0 72px;
}

.eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.eyebrow.dark { color: #C8922A; }

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.7rem, 5.6vw, 4.4rem);
  font-weight: 900; line-height: 1.04; letter-spacing: -.03em;
}
h1 span { color: var(--amber); }

.lede { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--on-dark-dim); max-width: 42ch; margin: 0 0 30px; }

.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; margin: 0 0 30px; padding: 0; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts svg, .facts img { width: 22px; height: 26px; color: var(--amber); flex: 0 0 auto; }
.facts span { display: flex; flex-direction: column; font-size: 13px; color: var(--on-dark-dim); line-height: 1.35; }
.facts strong { font-size: 15px; color: var(--on-dark); }

/* ── store buttons ──────────────────────────────── */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 22px 11px 18px; border-radius: 14px; text-decoration: none;
  background: #11161D; color: #fff; border: 1px solid rgba(255,255,255,.14);
  transition: transform .18s, box-shadow .18s;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.4); }
.store svg { width: 25px; height: 25px; flex: 0 0 auto; }
.store span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 16px; }
.store small { font-size: 10px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; opacity: .68; }

/* ── the phone ──────────────────────────────────── */
.phone-wrap { position: relative; justify-self: center; }
.phone-shot {
  /* Upright and large. Tilting it read as a stock mockup, and the screen is
     the one place on this page where the product is actually visible — it
     earns the room. */
  width: min(430px, 42vw);
  height: auto;
  filter: drop-shadow(0 44px 80px rgba(0, 0, 0, .62));
}
@media (max-width: 1040px) { .phone-shot { width: min(330px, 70vw); } }

/* ── bands ──────────────────────────────────────── */
.band { padding: 92px 0; }
.band.cream { background: var(--cream); color: var(--ink); }
.band.navy { background: var(--navy); }

h2 { margin: 0 0 18px; font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 900; line-height: 1.1; letter-spacing: -.025em; }
h2.light { color: var(--on-dark); }
.body-text { color: var(--ink-soft); max-width: 46ch; margin: 0 0 28px; }
.body-text.dim { color: var(--on-dark-dim); }

/* ── listen block ───────────────────────────────── */
.listen-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }

.story {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line-light); border-radius: 16px;
  padding: 12px 18px 12px 12px; box-shadow: 0 10px 30px rgba(22,32,46,.07);
  max-width: 480px;
}
.story > img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.story-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.story-text strong { font-size: 14px; }
.story-text > span { font-size: 12px; color: var(--ink-soft); }
.story-time { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; flex: 0 0 auto; }

.play {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  border: none; cursor: pointer; background: var(--amber); color: var(--navy-deep);
  display: grid; place-items: center; transition: transform .18s, box-shadow .25s;
}
.play:hover { transform: scale(1.07); }
.play svg { width: 20px; height: 20px; }
.play .icon-pause, .chip .icon-pause { display: none; }
.is-playing .play .icon-play, .is-playing .chip .icon-play { display: none; }
.is-playing .play .icon-pause, .is-playing .chip .icon-pause { display: block; }
.is-playing .play { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,194,26,.45); }
  100% { box-shadow: 0 0 0 18px rgba(255,194,26,0); }
}
.play.is-loading, .chip.is-loading { opacity: .55; cursor: progress; }

/* A still waveform until something plays — bars dancing over silence is a
   lie the ear notices before the eye does. */
.wave { display: flex; align-items: center; gap: 2px; height: 22px; margin-top: 5px; }
.wave i { display: block; width: 2px; height: 5px; border-radius: 1px; background: var(--ink-soft); opacity: .45; }
.is-playing .wave i { background: var(--amber); opacity: 1; animation: bar .9s ease-in-out infinite; }
.is-playing .wave i:nth-child(2n) { animation-duration: 1.3s; }
.is-playing .wave i:nth-child(3n) { animation-duration: .7s; }
.is-playing .wave i:nth-child(5n) { animation-duration: 1.05s; }
@keyframes bar { 0%, 100% { height: 4px; } 50% { height: 20px; } }

/* ── place cards ────────────────────────────────── */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cards li {
  position: relative; border-radius: var(--r); overflow: hidden;
  aspect-ratio: 3 / 4; box-shadow: 0 12px 30px rgba(22,32,46,.14);
  transition: transform .22s;
}
.cards li:hover { transform: translateY(-4px); }
.cards img { width: 100%; height: 100%; object-fit: cover; }
.card-foot {
  position: absolute; inset: auto 0 0 0; padding: 14px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  background: linear-gradient(180deg, transparent, rgba(7,26,47,.88));
  color: #fff; font-weight: 700; font-size: 14px; line-height: 1.25;
}
.chip {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  border: none; cursor: pointer; background: var(--amber); color: var(--navy-deep);
  display: grid; place-items: center; transition: transform .18s;
}
.chip:hover { transform: scale(1.12); }
.chip svg { width: 14px; height: 14px; }

/* ── explore: the real map ──────────────────────── */
.explore { background: var(--navy); padding: 92px 0 0; }
.explore-head { padding-bottom: 36px; max-width: 720px; }
.explore h2 span { color: var(--amber); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 600; font-family: inherit;
  background: rgba(255, 255, 255, .06); color: var(--on-dark);
  border: 1px solid var(--line-dark);
  transition: background .18s, color .18s, border-color .18s;
}
.pill img { width: 20px; height: 20px; }
.pill:hover { border-color: rgba(255, 194, 26, .5); }
.pill.is-on { background: var(--amber); color: var(--navy-deep); border-color: var(--amber); }

/* The stage holds the artwork, the map and the card, so the card is inside
   whatever the map is doing rather than floating next to it. */
.map-stage { position: relative; height: min(76vh, 680px); overflow: hidden; }
.map-fallback {
  position: absolute; inset: 0;
  background: url('/assets/map-fallback.webp') center / cover no-repeat;
  transition: opacity .6s;
}
.map-stage.is-ready .map-fallback { opacity: 0; }
/* Two classes deep on purpose. Mapbox's own stylesheet sets
   .mapboxgl-map { position: relative }, it loads after this one, and at
   equal specificity the later rule wins — which collapsed the map to zero
   height and left Mapbox drawing into its 300px default, off-stage. */
.map-stage .map-canvas { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.map-stage.is-ready .map-canvas { opacity: 1; }
/* If Mapbox never arrives the artwork simply stays, and the hint goes: there
   is nothing to tap. */
.map-stage.map-failed .map-hint { display: none; }

.map-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  margin: 0; padding: 9px 18px; border-radius: 999px;
  background: rgba(7, 26, 47, .82); backdrop-filter: blur(8px);
  border: 1px solid var(--line-dark);
  font-size: 13px; color: var(--on-dark-dim); pointer-events: none;
  transition: opacity .3s;
}
.map-stage.has-card .map-hint { opacity: 0; }

.place-card {
  position: absolute; right: 22px; top: 22px; width: 320px; z-index: 5;
  background: rgba(7, 26, 47, .93); backdrop-filter: blur(14px);
  border: 1px solid var(--line-dark); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.place-card > img { width: 100%; height: 170px; object-fit: cover; }
.place-close {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: none; background: rgba(7, 26, 47, .75); color: #fff;
  font-size: 20px; line-height: 1; display: grid; place-items: center;
}
.place-close:hover { background: var(--amber); color: var(--navy-deep); }
.place-body { padding: 16px 18px 18px; }
.place-body h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.place-cat { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 12px; color: var(--amber); font-weight: 600; }
.place-cat img { width: 20px; height: 20px; }
.place-sub { margin: 0 0 14px; font-size: 13px; color: var(--on-dark-dim); line-height: 1.45; }
.place-player { display: flex; align-items: center; gap: 12px; }
.place-time { font-size: 12px; color: var(--on-dark-dim); font-variant-numeric: tabular-nums; }
.place-player .wave { flex: 1; margin-top: 0; }
.place-player .wave i { background: rgba(255, 255, 255, .3); }

/* Mapbox's own chrome, dressed to match. */
.mapboxgl-ctrl-group { background: rgba(7, 26, 47, .85) !important; border: 1px solid var(--line-dark); }
.mapboxgl-ctrl-group button + button { border-top: 1px solid var(--line-dark); }
.mapboxgl-ctrl-icon { filter: invert(1) brightness(1.6); }

@media (max-width: 760px) {
  .map-stage { height: 72vh; }
  .place-card { left: 14px; right: 14px; top: auto; bottom: 14px; width: auto; }
  .place-card > img { height: 120px; }
}

/* ── how it works + faq ─────────────────────────── */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.how-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.how-steps li { display: flex; align-items: center; gap: 14px; }
.step-n { font-size: 15px; font-weight: 800; color: #C8922A; width: 14px; flex: 0 0 auto; }
.step-ic {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(255,194,26,.22); color: #8a6412;
  display: grid; place-items: center;
}
.step-ic svg { width: 22px; height: 22px; }
.how-steps strong { font-size: 16px; }

.faq-col h3 { margin: 0 0 10px; font-size: 1.3rem; font-weight: 800; }
.faq-col details { border-bottom: 1px solid var(--line-light); padding: 15px 0; }
.faq-col summary {
  cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-col summary::-webkit-details-marker { display: none; }
.faq-col summary::after { content: '+'; color: #C8922A; font-size: 1.4rem; line-height: 1; transition: transform .2s; flex: 0 0 auto; }
.faq-col details[open] summary::after { transform: rotate(45deg); }
.faq-col p { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; max-width: 54ch; }

/* ── closer ─────────────────────────────────────── */
.closer { position: relative; isolation: isolate; padding: 104px 0 110px; overflow: hidden; }
.closer-photo { position: absolute; inset: 0; z-index: -1; background: url('/assets/palma-cta.webp') center 58% / cover no-repeat; }
.closer-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(95deg, var(--navy-deep) 6%, rgba(10,35,66,.88) 42%, rgba(10,35,66,.35) 85%);
}
.closer-inner { max-width: 620px; }
.closer-note { margin: 26px 0 0; font-size: 15px; color: var(--on-dark-dim); font-style: italic; }

/* ── footer ─────────────────────────────────────── */
.site-foot { background: var(--navy-deep); border-top: 1px solid var(--line-dark); padding: 32px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a { color: var(--on-dark-dim); text-decoration: none; font-size: 14px; }
.site-foot a:hover { color: var(--amber); }
.site-foot p { margin: 0; font-size: 14px; color: var(--on-dark-dim); }

/* ── narrow ─────────────────────────────────────── */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 118px; }
  /* Shown on phones too, below the copy. Most visitors to a travel app's
     page arrive on a phone, and a picture of the app on a phone is the
     most persuasive thing here — hiding it exactly there was backwards. */
  .phone-wrap { margin-top: 34px; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(7,26,47,.82) 0%, rgba(10,35,66,.86) 60%, rgba(7,26,47,.95) 100%); }
  .listen-grid, .map-grid, .how-grid { grid-template-columns: 1fr; gap: 44px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .band { padding: 66px 0; }
  .facts { gap: 18px 24px; }
  .cta-row .store { flex: 1 1 100%; justify-content: center; }
  .story { flex-wrap: wrap; }
  .story-time { display: none; }
  .foot-inner { justify-content: center; text-align: center; }
}

/* ── cities ─────────────────────────────────────── */
.cities { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1.6fr repeat(3, 1fr); align-items: stretch; }

.city.live a { display: block; position: relative; border-radius: var(--r); overflow: hidden; height: 100%; text-decoration: none; color: #fff; }
.city.live img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.city.live:hover img { transform: scale(1.04); }
.city-foot {
  position: absolute; inset: auto 0 0 0; padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(7, 26, 47, .92));
  display: flex; flex-direction: column; gap: 3px;
}
.city-flag {
  align-self: flex-start; margin-bottom: 4px;
  background: var(--amber); color: var(--navy-deep);
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.city-foot strong { font-size: 1.2rem; }
.city-meta { font-size: 12px; color: var(--on-dark-dim); }

/* The unfinished ones are deliberately flat and unclickable. Dressing them up
   as cards would promise a page that does not exist. */
.city.soon {
  display: grid; place-items: center; min-height: 150px;
  border: 1px dashed var(--line-dark); border-radius: var(--r);
  background: rgba(255, 255, 255, .02); text-align: center;
}
.city.soon strong { display: block; font-size: 1.05rem; color: var(--on-dark); }
.city.soon span { font-size: 12px; color: var(--on-dark-dim); }

.closer-note a { color: var(--amber); text-decoration: none; font-style: normal; font-weight: 600; }
.closer-note a:hover { text-decoration: underline; }

@media (max-width: 900px) { .cities { grid-template-columns: repeat(2, 1fr); } .city.live { grid-column: 1 / -1; min-height: 260px; } }
@media (max-width: 520px) { .cities { grid-template-columns: 1fr; } }
