/* ───────────────────────────────────────────────────────────────────────────
   BnbScout — light cinematic system.
   White warm canvas · violet primary · signal-gold pins · radar-cyan scan.
   ─────────────────────────────────────────────────────────────────────────── */
:root {
  /* surfaces */
  --bg:        #FBFAF9;
  --bg-tint:   #F4F1FB;   /* faint violet wash */
  --panel:     rgba(255,255,255,.66);
  --panel-brd: rgba(124,108,255,.16);
  --hair:      rgba(20,18,28,.08);

  /* ink */
  --ink:       #15131F;
  --ink-2:     #4A4760;
  --ink-3:     #8B8799;

  /* accents — driven by Tweaks (violet primary by default) */
  --violet:    #7C6CFF;
  --violet-2:  #5A47E0;
  --gold:      #F5B43C;
  --gold-2:    #E89518;
  --cyan:      #16B8A6;
  --cyan-glow: #4FD1C5;

  /* shadow */
  --shadow-bubble: 0 18px 40px -18px rgba(36,28,90,.45), 0 4px 14px -6px rgba(36,28,90,.25);
  --shadow-glass:  0 24px 70px -30px rgba(44,34,110,.4);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;

  --motion: 1;            /* 0..1 multiplier set by Tweaks */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: auto; }              /* Lenis owns smooth scroll */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv05", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.tnum { font-variant-numeric: tabular-nums; }

/* warm light field + faint violet aurora behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 18% 8%,  rgba(124,108,255,.14), transparent 55%),
    radial-gradient(90% 80%  at 90% 100%, rgba(245,180,60,.10),  transparent 60%),
    radial-gradient(70% 70%  at 60% 40%,  rgba(79,209,197,.07),  transparent 60%);
}
/* film grain */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── fixed WebGL canvas behind DOM ── */
#scene {
  position: fixed; inset: 0; z-index: 1;
  width: 100vw; height: 100vh;
  display: block;
}

/* (custom cursor removed — native pointer) */

/* ── nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .compass {
  width: 30px; height: 30px; position: relative;
  border-radius: 50%; border: 1.6px solid var(--ink);
  display: grid; place-items: center;
}
.brand .compass i {
  width: 2px; height: 14px; background: var(--gold); border-radius: 2px;
  transform-origin: center; transform: rotate(38deg);
  box-shadow: 0 0 8px var(--gold);
  animation: needle 9s ease-in-out infinite;
}
@keyframes needle { 0%,100%{transform:rotate(28deg)} 50%{transform:rotate(64deg)} }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand b span { color: var(--violet); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  letter-spacing: -.01em;
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links a:not(.cta) { display: none; } }

/* magnetic gold CTA */
.cta {
  --halo: 0 0 0 rgba(245,180,60,0);
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px; border: 0;
  font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: -.01em;
  color: #2A1C00; background: linear-gradient(180deg, #FFCC63, var(--gold));
  box-shadow: 0 8px 24px -8px rgba(245,180,60,.7), inset 0 1px 0 rgba(255,255,255,.6), var(--halo);
  cursor: pointer; will-change: transform;
  transition: box-shadow .25s, transform .18s cubic-bezier(.3,.8,.4,1);
}
.cta:hover { --halo: 0 0 36px rgba(245,180,60,.55); }
.cta .dot { width: 7px; height: 7px; border-radius: 50%; background: #2A1C00; }
.cta.ghost {
  color: var(--ink); background: var(--panel); border: 1px solid var(--panel-brd);
  box-shadow: 0 8px 24px -14px rgba(44,34,110,.4);
}

/* ── stage / scroll structure ── */
.act { position: relative; z-index: 10; }
#wrap { position: relative; z-index: 10; }

/* === ACT 1 — HERO === */
#hero { min-height: 100vh; display: flex; align-items: center; }
.hero-grid {
  width: 100%; max-width: 1320px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-globe-space { display: none; } }

.hero-copy { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet-2); margin-bottom: 22px;
}
.eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(22,184,166,.5); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(22,184,166,.5)} 70%{box-shadow:0 0 0 12px rgba(22,184,166,0)} 100%{box-shadow:0 0 0 0 rgba(22,184,166,0)} }

.headline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 6.4vw, 92px); line-height: .96; letter-spacing: -.035em;
  margin: 0 0 22px; color: var(--ink); text-wrap: balance;
}
.headline .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.headline .char { display: inline-block; will-change: transform; }
/* shared kinetic heading mechanics */
.line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.char { display: inline-block; will-change: transform; }

/* hero intro + map-pin entrance are GSAP-driven (see main.js) with a visible
   resting state, so paused CSS timelines never leave them stuck hidden. */
.headline em { font-style: normal; color: var(--violet); position: relative; }
.headline .scout-underline .char {
  background: linear-gradient(120deg, var(--violet), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.sub {
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--ink-2);
  max-width: 30ch; margin: 0 0 30px;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* glass search bar (from reference) */
.searchbar {
  margin-top: 38px;
  display: flex; align-items: stretch; gap: 4px;
  background: var(--panel); border: 1px solid var(--panel-brd); border-radius: 16px;
  padding: 6px; max-width: 460px;
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow-glass);
}
.sf { flex: 1; display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 12px; }
.sf:hover { background: rgba(124,108,255,.06); }
.sf .ic {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(124,108,255,.12); color: var(--violet-2); flex: none;
}
.sf .ic svg { width: 16px; height: 16px; }
.sf .lab { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; }
.sf .val { font-size: 14px; color: var(--ink); font-weight: 500; margin-top: 1px; }
.sf .ph  { color: var(--ink-3); font-weight: 500; }
.sf-div { width: 1px; background: var(--hair); margin: 8px 0; }
.sf-go {
  flex: none; width: 46px; border-radius: 12px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--violet), var(--violet-2));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px -8px rgba(90,71,224,.7);
}
.sf-go svg { width: 18px; height: 18px; }

/* ═══ search-bar icon hover animations ═══ */
.sf-go { transition: transform .2s cubic-bezier(.3,.8,.4,1), box-shadow .25s, background .2s; }
.sf-go svg, .ms-go svg { transition: transform .3s cubic-bezier(.3,.9,.4,1); }
.sf-go:hover { transform: translateY(-2px) scale(1.08); box-shadow: 0 12px 26px -8px rgba(90,71,224,.8); }
.sf-go:hover svg, .ms-mini:hover .ms-go svg { animation: searchSweep .72s ease; }
@keyframes searchSweep {
  0% { transform: rotate(0) scale(1); }
  28% { transform: rotate(-20deg) scale(1.2); }
  58% { transform: rotate(13deg) scale(1.12); }
  100% { transform: rotate(0) scale(1); }
}
.sf .ic { transition: color .2s; }
.sf .ic svg { transition: transform .3s cubic-bezier(.3,1.2,.4,1); }
.searchbar .sf:hover .ic { color: var(--violet-2); }
.searchbar .sf:nth-of-type(1):hover .ic svg { animation: icoPinHop .6s cubic-bezier(.3,1.4,.5,1); }
.searchbar .sf:nth-of-type(3):hover .ic svg { animation: icoCalPop .6s cubic-bezier(.3,1.4,.5,1); }
@keyframes icoPinHop { 0%,100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-5px) scale(1.18); } }
@keyframes icoCalPop { 0%,100% { transform: rotate(0) scale(1); } 35% { transform: rotate(-8deg) scale(1.2); } 70% { transform: rotate(6deg) scale(1.12); } }

/* ═══ BENEFITS band — above the map (website only) ═══ */
#benefits { position: relative; z-index: 10; padding: 12vh clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg) 80%, transparent) 20%, color-mix(in srgb, var(--bg) 80%, transparent) 80%, transparent 100%); }
.benefits-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 2fr;
  gap: clamp(28px, 5vw, 76px); align-items: center; }
.benefits-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5vw, 56px);
  line-height: 1.0; letter-spacing: -.035em; color: var(--ink); margin: 0; }
.benefits-head p { color: var(--ink-2); font-size: 16px; line-height: 1.5; margin: 16px 0 0; max-width: 32ch; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); }
.benefit .b-ico { width: 62px; height: 62px; object-fit: contain; display: block; margin-bottom: 15px;
  filter: drop-shadow(0 7px 16px rgba(20,18,30,.2)); transform-origin: bottom center;
  transition: transform .4s cubic-bezier(.3,.9,.4,1); }
.benefit h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); margin: 0 0 7px; }
.benefit p { color: var(--ink-2); font-size: 14px; line-height: 1.5; margin: 0; }
.benefit.earth .b-ico { transform-origin: center center; }
@media (prefers-reduced-motion: no-preference) {
  /* always-on: earth spins in place; bag & tickets burst every ~5s */
  .benefit.earth .b-ico { animation: bSpin 9s linear infinite; }
  .benefit.bag .b-ico   { animation: bHop 5s ease-in-out infinite; }
  .benefit.tix .b-ico   { animation: bWiggle 5s ease-in-out infinite; }
  /* hover just speeds them up */
  .benefit.earth:hover .b-ico { animation-duration: 3.2s; }
  .benefit.bag:hover .b-ico   { animation-duration: 1s; }
  .benefit.tix:hover .b-ico   { animation-duration: 1.3s; }
}
@keyframes bSpin { to { transform: rotate(360deg); } }
@keyframes bHop { 0%,12%,100% { transform: translateY(0) scale(1); } 4% { transform: translateY(-11px) scale(1.05,.95); } 8% { transform: translateY(0) scale(1.05,.95); } }
@keyframes bWiggle { 0%,16%,100% { transform: rotate(0) scale(1); } 5% { transform: rotate(-11deg) scale(1.06); } 11% { transform: rotate(9deg) scale(1.04); } }
@media (max-width: 900px) { .benefits-inner { grid-template-columns: 1fr; gap: 34px; } }
@media (max-width: 560px) { .benefits-grid { grid-template-columns: 1fr; gap: 24px; } }

/* floating avatar + add (reference) */
.fab {
  position: fixed; right: clamp(18px, 3vw, 40px); bottom: clamp(18px, 3vw, 40px);
  z-index: 45; display: flex; align-items: center; gap: -14px;
}
.fab .ava {
  width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
  border: 3px solid #fff; box-shadow: var(--shadow-bubble);
}
.fab .plus {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  margin-left: -16px; color: #fff; font-size: 22px; line-height: 1;
  background: linear-gradient(180deg, #FF7A6B, #F0533F);
  box-shadow: 0 10px 24px -8px rgba(240,83,63,.7);
  display: grid; place-items: center;
}

/* ── photo-bubble pins (projected onto the 3D globe) ── */
#pins { position: fixed; inset: 0; z-index: 12; pointer-events: none; }
.pin {
  position: absolute; transform: translate(-50%, -100%);
  will-change: transform, opacity; pointer-events: auto;
  --pin-accent: var(--gold);
}
.pin .bubble {
  position: relative; width: var(--sz, 92px); height: var(--sz, 92px);
  border-radius: 50% 50% 50% 6px;
  transform: rotate(45deg);
  background: #fff; padding: 5px;
  box-shadow: var(--shadow-bubble);
  overflow: hidden;
}
.pin .bubble > * { transform: rotate(-45deg); }
.pin image-slot, .pin .ph-img {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  transform: rotate(-45deg);
}
.pin .ph-img {
  background:
    repeating-linear-gradient(135deg, rgba(124,108,255,.16) 0 7px, rgba(124,108,255,.05) 7px 14px),
    var(--bg-tint);
  display: grid; place-items: center;
  font-family: ui-monospace, monospace; font-size: 9px; color: var(--violet-2);
  letter-spacing: .03em; text-align: center; padding: 6px;
}
/* stem dot under the pin (reference's orange marker) */
.pin .stem {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--pin-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--pin-accent) 26%, transparent), 0 6px 12px -4px rgba(0,0,0,.4);
}
.pin .stem::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1.5px solid var(--pin-accent); opacity: 0;
}
.pin.bloom .stem::after { animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0%{transform:scale(.6);opacity:.7} 100%{transform:scale(3.4);opacity:0} }

/* price + score tag */
.pin .tag {
  position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1px;
  background: var(--panel); border: 1px solid var(--panel-brd); border-radius: 11px;
  padding: 7px 11px; white-space: nowrap;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px -12px rgba(44,34,110,.45);
}
.pin .tag .price { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.pin .tag .price b { color: var(--gold-2); }
.pin .tag .meta { font-size: 10.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; }
.pin .tag .meta em { font-style: normal; color: var(--cyan); }

/* scroll hint */
.scroll-hint {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
  transition: opacity .4s;
}
.scroll-hint .mouse {
  width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid var(--ink-3);
  position: relative;
}
.scroll-hint .mouse i {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 6px; margin-left: -1.5px;
  background: var(--violet); border-radius: 2px; animation: wheel 1.6s infinite;
}
@keyframes wheel { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 100%{opacity:0;transform:translateY(9px)} }

/* === ACT 2 — ASK THE SCOUT === */
#scout { min-height: 150vh; position: relative; }

/* phone-in-hand mockup (right side) */
.scout-phone { position: relative; margin-left: auto; width: min(420px, 46vw); display: flex; justify-content: center; }
/* photo-real hand gripping the phone: the live app sits in the screen slot,
   the chroma-keyed hand PNG (transparent screen) layers IN FRONT so the
   fingers/bezel/notch wrap the device — grip is baked into the photo.
   Slot geometry = measured green-screen bounds of the source image. */
.sp-stage { position: relative; width: 100%; aspect-ratio: 1536 / 2752; transform-origin: 50% 92%; }
.sp-slot { position: absolute; left: 31.38%; top: 16.5%; width: 44.53%; height: 55.67%; overflow: hidden; background: #F7F5F0; z-index: 1; }
.sp-live { position: absolute; top: 0; left: 0; width: 390px; height: 878px; border: 0;
  transform-origin: top left; transform: scale(var(--sp-scale, .43)); pointer-events: none; }
.sp-handphone { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; display: block;
  /* long, gradual dissolve of the wrist/forearm so it melts into the background — fully gone before the image edge */
  -webkit-mask-image: linear-gradient(to bottom, #000 0 70%, rgba(0,0,0,.72) 80%, rgba(0,0,0,.34) 88%, transparent 95%);
          mask-image: linear-gradient(to bottom, #000 0 70%, rgba(0,0,0,.72) 80%, rgba(0,0,0,.34) 88%, transparent 95%); }
/* gradual blur veil over the wrist — softens the dissolve so it reads as one with the page */
.sp-stage::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 34%; z-index: 3; pointer-events: none;
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 55%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 55%, #000 100%);
}
/* ultra-lively hand: swings left↔right (pivoting at the wrist) while the
   Scout section is in view */
@media (prefers-reduced-motion: no-preference) {
  body.at-scout .sp-stage { animation: handSway 3.2s cubic-bezier(.45,0,.55,1) infinite; }
}
@keyframes handSway {
  0%   { transform: translateX(-30px) rotate(-6deg); }
  25%  { transform: translateX(0)     rotate(0deg) translateY(-6px); }
  50%  { transform: translateX(30px)  rotate(6deg); }
  75%  { transform: translateX(0)     rotate(0deg) translateY(-6px); }
  100% { transform: translateX(-30px) rotate(-6deg); }
}
@media (max-width: 820px) {
  .scout-phone { margin: 0 auto 7vh; width: min(340px, 82vw); }
}
.scout-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scout-stage {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end;
  padding: 0 clamp(20px, 4vw, 56px);
}
.scout-head {
  position: absolute; top: 12vh; left: clamp(20px,4vw,56px); right: clamp(20px,4vw,56px);
  max-width: 560px;
}
.scout-head .eyebrow { color: var(--cyan); }
.scout-head .eyebrow .pulse { background: var(--violet); box-shadow:0 0 0 0 rgba(124,108,255,.5); }
.scout-head h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02; letter-spacing: -.03em; margin: 0; color: var(--ink);
}
.scout-head p { color: var(--ink-2); font-size: 16px; max-width: 42ch; margin: 14px 0 0; }

/* glass concierge panel */
.concierge {
  position: relative; margin-left: auto;
  width: min(440px, 42vw); max-width: 440px;
  background: var(--panel); border: 1px solid var(--panel-brd); border-radius: 22px;
  -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  box-shadow: var(--shadow-glass);
  padding: 18px; will-change: transform, opacity;
}
@media (max-width: 820px) {
  .scout-stage { align-items: flex-end; }
  .concierge { width: auto; margin: 0 auto 5vh; max-width: 520px; }
  .scout-head { top: 8vh; }
}
.cc-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 14px; border-bottom: 1px solid var(--hair); }
.cc-orb {
  width: 34px; height: 34px; border-radius: 50%; flex: none; position: relative;
  background: radial-gradient(circle at 35% 30%, var(--cyan-glow), var(--cyan) 60%, var(--violet));
  box-shadow: 0 0 16px rgba(22,184,166,.55);
}
.cc-orb i { position:absolute; inset:0; border-radius:50%; border:1.5px solid rgba(255,255,255,.6); animation: pulse 2.6s infinite; }
.cc-head .t b { font-family: var(--font-display); font-size: 15px; font-weight: 700; display: block; }
.cc-head .t span { font-size: 11.5px; color: var(--cyan); font-weight: 600; }

.chat { display: flex; flex-direction: column; gap: 10px; padding: 14px 4px 6px; }
.msg { max-width: 86%; font-size: 13.5px; line-height: 1.5; padding: 10px 13px; border-radius: 14px; }
.msg.user { align-self: flex-end; background: linear-gradient(180deg, var(--violet), var(--violet-2)); color: #fff; border-bottom-right-radius: 5px; }
.msg.bot  { align-self: flex-start; background: rgba(20,18,28,.05); color: var(--ink); border-bottom-left-radius: 5px; }

/* tool-call chips */
.tools { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 4px 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-family: ui-monospace, monospace;
  font-size: 11px; font-weight: 600; padding: 6px 11px; border-radius: 9px;
  background: rgba(22,184,166,.1); color: var(--cyan); border: 1px solid rgba(22,184,166,.22);
  opacity: 0;
}
.chip .sp {
  width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid currentColor;
  border-top-color: transparent; animation: spin .7s linear infinite;
}
.chip.done { background: rgba(124,108,255,.1); color: var(--violet-2); border-color: rgba(124,108,255,.24); }
.chip.done .sp { animation: none; border: 0; width: 12px; height: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* result rail + factor radar */
.cc-result { padding: 12px 4px 2px; opacity: 0; }
.cc-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.cc-tab {
  flex: 1; text-align: left; border: 1px solid var(--hair); background: rgba(255,255,255,.5);
  border-radius: 11px; padding: 8px 10px; cursor: pointer; transition: .2s;
}
.cc-tab.active { border-color: var(--violet); background: rgba(124,108,255,.08); box-shadow: 0 0 0 3px rgba(124,108,255,.1); }
.cc-tab .rank { font-size: 10px; font-weight: 700; color: var(--gold-2); letter-spacing: .08em; }
.cc-tab .ti { font-size: 12px; font-weight: 600; color: var(--ink); margin-top: 2px; line-height: 1.2; }
.cc-tab .sc { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--violet-2); margin-top: 4px; }

.radar-wrap { display: flex; gap: 16px; align-items: center; }
.radar-wrap svg { width: 150px; height: 150px; flex: none; }
.radar-side { flex: 1; min-width: 0; }
.radar-side .why { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.radar-side .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.radar-side .price-row .pp { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ink); }
.radar-side .price-row .pn { font-size: 12px; color: var(--ink-3); }
.radar-side .matchpill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: rgba(245,180,60,.16); color: var(--gold-2);
}
.radar-poly { transition: none; }
.radar-axis { stroke: var(--hair); stroke-width: 1; fill: none; }
.radar-ring { stroke: var(--hair); stroke-width: 1; fill: none; }
.radar-lab { font-size: 8.5px; fill: var(--ink-3); font-weight: 600; font-family: var(--font-body); }

/* === FINALE / FOOTER === */
.finale { position: relative; z-index: 10; min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 8vh clamp(20px,4vw,56px) 0; }
.finale-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.finale-scout { height: clamp(130px, 18vw, 188px); width: auto; display: block; margin: 0 auto 20px; filter: drop-shadow(0 18px 26px rgba(90,71,224,.24)); user-select: none; -webkit-user-select: none; }
@media (prefers-reduced-motion: no-preference) {
  .finale-scout { animation: finaleScoutBob 5s ease-in-out infinite; }
  @keyframes finaleScoutBob { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
}
.finale .eyebrow { justify-content: center; color: var(--gold-2); }
.finale .eyebrow .pulse { background: var(--gold); box-shadow: 0 0 0 0 rgba(245,180,60,.5); }
.finale h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px,5vw,68px); line-height: 1; letter-spacing: -.035em; margin: 0 0 14px; }
.finale p { color: var(--ink-2); font-size: 17px; margin: 0 auto 30px; max-width: 46ch; }
.capture { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; background: var(--panel); border: 1px solid var(--panel-brd); border-radius: 14px; padding: 6px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--shadow-glass); }
.capture input { flex: 1; border: 0; background: transparent; outline: none; font: inherit; font-size: 15px; color: var(--ink); padding: 0 14px; }
.capture input::placeholder { color: var(--ink-3); }
.site-foot { margin-top: 9vh; border-top: 1px solid var(--hair); padding: 26px clamp(20px,4vw,56px); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1320px; margin-left: auto; margin-right: auto; width: 100%; }
.site-foot .fb { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; }
.site-foot .fb span { color: var(--violet); }
.site-foot .links { display: flex; gap: 22px; }
.site-foot a { color: var(--ink-3); text-decoration: none; font-size: 13px; font-weight: 500; }
.site-foot a:hover { color: var(--ink); }
.site-foot .meta { color: var(--ink-3); font-size: 12px; }

/* coloured footer band */
.site-foot { background: var(--violet-2); border-top: 0; border-radius: 28px 28px 0 0; padding-top: 32px; padding-bottom: 32px; }
.site-foot .fb { color: #fff; letter-spacing: -.03em; }
.site-foot .fb span { color: var(--gold); }
.site-foot a { color: rgba(255,255,255,.76); }
.site-foot a:hover { color: #fff; }
.site-foot .meta { color: rgba(255,255,255,.6); }

/* ── tweaks panel host hidden by default; React owns it ── */
#tweaks-root:empty { display: none; }

/* ════════════════════════════════════════════════════════════════════════
   ASK THE SCOUT — minimal stay cards (no scores / radar / jargon)
   ════════════════════════════════════════════════════════════════════════ */
.cc-cards { display: flex; flex-direction: column; gap: 9px; padding: 12px 4px 2px; }
.stay {
  display: flex; align-items: center; gap: 13px; padding: 9px; border-radius: 15px;
  background: rgba(255,255,255,.55); border: 1px solid var(--hair);
  transition: border-color .2s, transform .2s;
}
.stay:hover { border-color: var(--violet); transform: translateX(3px); }
.stay-ph { width: 58px; height: 58px; flex: none; border-radius: 12px; overflow: hidden; }
.stay-ph image-slot { display: block; width: 100%; height: 100%; }
.stay-body { flex: 1; min-width: 0; }
.stay-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.2; }
.stay-why { font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.35; }
.stay-price { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--violet-2); white-space: nowrap; }
.stay-price span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 10px; color: var(--ink-3); text-align: right; }

/* ════════════════════════════════════════════════════════════════════════
   DESTINATIONS — the map · ultra-animated locations
   ════════════════════════════════════════════════════════════════════════ */
#destinations { min-height: 185vh; position: relative; }
.dest-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }

/* flat aerial map — a slowly-panning dotted plane (camera drifting overhead) */
.dest-map {
  position: absolute; left: 0; top: 0; bottom: 0; width: 62%; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, #000 0%, #000 20%, transparent 100%);
          mask: linear-gradient(90deg, #000 0%, #000 20%, transparent 100%);
}
@media (max-width: 900px) { .dest-map { width: 100%; opacity: .45; } }
.dest-map-plane { position: absolute; inset: -16%; will-change: transform; animation: mapPan 36s ease-in-out infinite; }
@keyframes mapPan {
  0%   { transform: translate(-3%, -2%) scale(1.06); }
  50%  { transform: translate(2.5%, 2.5%) scale(1.1); }
  100% { transform: translate(-3%, -2%) scale(1.06); }
}
.map-world {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 122%; aspect-ratio: 2 / 1;
  background: url("world-dots.png") center / 100% 100% no-repeat;
  opacity: .8;
}
.map-routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-routes path { fill: none; stroke: var(--cyan); stroke-width: .4; opacity: .55; stroke-dasharray: 3 3; animation: routeFlow 6s linear infinite; }
@keyframes routeFlow { to { stroke-dashoffset: -24; } }
.map-edge { position: absolute; inset: 0; pointer-events: none; background: none; }

/* map photo-location pins */
.map-pin { position: absolute; transform: translate(-50%, -100%); --sz: 68px; }
.map-bob { animation: bob 5s ease-in-out infinite var(--bd); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.map-pin .bubble {
  position: relative; width: var(--sz); height: var(--sz);
  border-radius: 50% 50% 50% 6px; transform: rotate(45deg);
  background: #fff; padding: 5px; box-shadow: var(--shadow-bubble); overflow: hidden;
}
.map-pin .bubble > * { transform: rotate(-45deg); }
.map-pin image-slot { display: block; width: 100%; height: 100%; border-radius: 50%; transform: rotate(-45deg); }
.map-pin .citypic { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.map-pin .stem {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 26%, transparent), 0 6px 12px -4px rgba(0,0,0,.4);
}
.map-pin .stem::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--gold); opacity: 0; }
.map-pin.bloom .stem::after { animation: ping 2s ease-out infinite var(--bd); }
.reduce-motion .map-pin.bloom .stem::after, .reduce-motion .map-bob, .reduce-motion .dest-map-plane { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .dest-map-plane, .map-bob, .map-pin.bloom .stem::after, .map-routes path { animation: none !important; } }
.map-pin .tag {
  position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%);
  background: var(--panel); border: 1px solid var(--panel-brd); border-radius: 9px; padding: 4px 9px; white-space: nowrap;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 20px -12px rgba(44,34,110,.4);
}
.map-pin .tag .meta { font-size: 11px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }

.dest-stage {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end;
  max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px);
}
@media (max-width: 900px) { .dest-stage { justify-content: center; } }
.dest-copy { max-width: 540px; }
.dest-head {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 3.4vw, 54px); line-height: 1.0; letter-spacing: -.03em;
  margin: 0 0 20px; color: var(--ink); white-space: nowrap;
}
@media (max-width: 600px) { .dest-head { white-space: normal; font-size: clamp(30px, 9vw, 44px); } }

/* ════════════════════════════════════════════════════════════════════════
   HOW IT WORKS — ultra-animated three-step
   ════════════════════════════════════════════════════════════════════════ */
#how { position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 14vh clamp(20px,4vw,56px); }
.how-inner { max-width: 1180px; margin: 0 auto; width: 100%; }
.how-head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.how-head .eyebrow { justify-content: center; }
.how-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 6vw, 88px); line-height: .95; letter-spacing: -.04em; margin: 0;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 26px; } }
.step {
  position: relative; background: var(--panel); border: 1px solid var(--panel-brd);
  border-radius: 22px; padding: 30px 26px 28px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -34px rgba(44,34,110,.5);
}
.step-no { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--violet); letter-spacing: .14em; }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; margin: 6px 0 8px; color: var(--ink); }
.step p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin: 0; max-width: 28ch; }

/* step visuals — simple shapes, lively motion */
.step-viz { position: relative; width: 100%; height: 120px; margin-bottom: 22px; }
.step-viz > * { position: absolute; }

/* 01 Ask — stacking chat bubbles */
.viz-ask .b1, .viz-ask .b2, .viz-ask .b3 { border-radius: 14px; }
.viz-ask .b1 { left: 10px; top: 18px; width: 120px; height: 26px; background: rgba(124,108,255,.16); animation: floaty 4s ease-in-out infinite; }
.viz-ask .b2 { left: 38px; top: 52px; width: 150px; height: 30px; background: linear-gradient(180deg, var(--violet), var(--violet-2)); animation: floaty 4s ease-in-out infinite .5s; }
.viz-ask .b3 { left: 18px; top: 90px; width: 96px; height: 22px; background: rgba(124,108,255,.1); animation: floaty 4s ease-in-out infinite 1s; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* 02 Scout — radar sweep */
.viz-scout { display: grid; place-items: center; }
.viz-scout .ring, .viz-scout .ring.r2 { left: 50%; top: 50%; border-radius: 50%; border: 1.5px solid var(--hair); transform: translate(-50%,-50%); }
.viz-scout .ring { width: 104px; height: 104px; }
.viz-scout .ring.r2 { width: 64px; height: 64px; }
.viz-scout .sweep {
  left: 50%; top: 50%; width: 52px; height: 52px; transform-origin: 0 0;
  background: conic-gradient(from 0deg, color-mix(in srgb, var(--cyan) 55%, transparent), transparent 70%);
  border-radius: 0 0 0 52px; animation: radarSpin 2.6s linear infinite;
}
.viz-scout .blip { left: 64%; top: 38%; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 50%, transparent); animation: blipPing 2.6s ease-out infinite; }
@keyframes radarSpin { to { transform: rotate(360deg); } }
@keyframes blipPing { 0%,60%{box-shadow:0 0 0 0 color-mix(in srgb,var(--gold) 50%,transparent)} 80%{box-shadow:0 0 0 12px transparent} 100%{box-shadow:0 0 0 0 transparent} }

/* 03 Stay — pin lands + check */
.viz-stay { display: grid; place-items: center; }
.viz-stay .pin { left: 50%; top: 30px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50% 50% 50% 6px; background: linear-gradient(180deg, var(--violet), var(--violet-2)); transform: rotate(45deg); animation: drop 2.4s ease-in-out infinite; }
.viz-stay .ping { left: 50%; top: 78px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid var(--violet); opacity: 0; animation: landPing 2.4s ease-out infinite; }
.viz-stay .check { left: 50%; top: 33px; width: 14px; height: 8px; margin-left: -7px; border-left: 2.4px solid #fff; border-bottom: 2.4px solid #fff; transform: rotate(-45deg); }
@keyframes drop { 0%{transform:translateY(-14px) rotate(45deg)} 40%,100%{transform:translateY(0) rotate(45deg)} }
@keyframes landPing { 0%,38%{transform:scale(.4);opacity:0} 45%{opacity:.7} 100%{transform:scale(3);opacity:0} }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .brand .compass i, .scroll-hint .mouse i, .eyebrow .pulse, .cc-orb i, .pin.bloom .stem::after { animation: none !important; }
}
.reduce-motion .pin.bloom .stem::after,
.reduce-motion .scroll-hint .mouse i { animation: none !important; }

/* ════════════════════════════════════════════════════════════════════════
   MOBILE polish — spacing + no clipped text on small screens
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .headline { font-size: clamp(38px, 11vw, 58px); }
  .sub { font-size: 15.5px; max-width: 40ch; }
  .hero-actions { gap: 10px; }
  .hero-actions .cta, .hero-actions .cta.ghost { padding: 12px 18px; font-size: 13.5px; }
  /* hero search wraps so labels never clip */
  .searchbar { flex-wrap: wrap; gap: 6px; padding: 8px; }
  .searchbar .sf { flex: 1 1 42%; min-width: 0; }
  .searchbar .sf-div { display: none; }
  .searchbar .sf-go { flex: 1 1 100%; width: auto; height: 46px; border-radius: 12px; }
  .scout-head { top: 7vh; }
  .scout-head h2 { font-size: clamp(27px, 8vw, 40px); }
  .scout-head p { font-size: 14px; }
  .concierge { padding: 14px; border-radius: 18px; margin-bottom: 4vh; }
  .stay { gap: 10px; padding: 8px; }
  .stay-ph { width: 50px; height: 50px; }
  .stay-name { font-size: 13.5px; }
  .stay-why { font-size: 11.5px; }
  .stay-price { font-size: 15px; }
  .dest-head { font-size: clamp(28px, 9vw, 42px); }
  .dest-copy .sub { font-size: 14.5px; }
  .how-title { font-size: clamp(34px, 11vw, 56px); }
  .step { padding: 24px 20px; }
  .step h3 { font-size: 21px; }
  .step p { font-size: 14px; }
  .finale h2 { font-size: clamp(30px, 9vw, 52px); }
  .finale p { font-size: 15px; }
  .capture { flex-direction: column; gap: 6px; padding: 10px; }
  .capture input { text-align: center; padding: 9px; }
  .capture .cta { width: 100%; justify-content: center; }
  .site-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .map-pin { --sz: 52px; }
}
