/* "Know when to use your points." The map leads, with nothing covering a route: the phone sits beside it and the card over the empty South Pacific.
   A night flight, edge to edge: the ending's near-black violet, the land in the mark's wing colour, and amber only for the trip you chose. */
.pm { --pm-night:#150c2c; --pm-seam:#261a4a; --pm-wing:#b3a4d2; --pm-amber:#ffcf70; padding:clamp(72px,10svh,112px) 40px; background:linear-gradient(var(--pm-night),var(--pm-seam)); color:#f3effa; font-family:Manrope,sans-serif; }
.pm ::selection { background:var(--pm-amber); color:var(--pm-night); }
.pm-head { max-width:720px; margin:0 auto 22px; text-align:center; }
html[data-awaya-theme] body .pm h2 { margin:0; color:inherit; font-size:clamp(34px,3.4vw,46px); font-weight:600; line-height:1.12; letter-spacing:-.035em; text-align:center; }
html[data-awaya-theme] body .pm-head p { margin:10px auto 0; max-width:640px; color:#cfc7e2; font-size:15px; line-height:1.55; text-align:center; }
.pm-head .text-action { margin-top:8px; }
html[data-awaya-theme="forest-sage"] body.marketing-page .pm-head .text-action { color:#fff; }
html[data-awaya-theme="forest-sage"] body.marketing-page .pm-head .text-action:focus-visible { outline:2px solid var(--pm-amber); outline-offset:4px; }

/* Phone beside the map. The phone's width follows the screen height so the section fits on a laptop. */
.pm-stage { --ims-phone:clamp(240px,calc((100svh - 230px) * .4739),270px); position:relative; display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:clamp(20px,2.4vw,36px); max-width:1360px; margin:0 auto; }
.pm-phone { --ims-scale:.6; width:auto; align-self:center; color:#292530; }
.pm-phone .ims-scroll { padding-top:166px; }
.pm-first { margin-top:14px; }
.pm-phone .ims-tapback svg[hidden] { display:none; }
.pm-phone .ims-link img { height:146px; }
.pm-canvas { min-width:0; display:flex; flex-direction:column; justify-content:center; }

/* The map. */
.pm-map { display:block; width:100%; height:auto; overflow:visible; }
.pm-line { fill:none; stroke:var(--pm-wing); stroke-width:2; stroke-linecap:round; stroke-dasharray:0 6; opacity:.75; transition:opacity .3s ease; }
.pm-hi { fill:none; stroke:var(--pm-amber); stroke-width:3; stroke-linecap:round; stroke-dasharray:100 100; stroke-dashoffset:100; opacity:0; }
.pm-route.is-on .pm-line { opacity:0; }
.pm-route.is-on .pm-hi { opacity:1; stroke-dashoffset:0; transition:stroke-dashoffset 1s cubic-bezier(.45,.05,.2,1); }
.pm.is-away .pm-pulse { animation-play-state:paused; }
/* The trail runs just behind each plane, from its city outward, all the time. */
.pm-comet { fill:none; stroke:#fff; stroke-width:2.4; stroke-linecap:round; stroke-dasharray:14 200; opacity:.9; }
.pm-route.is-on .pm-comet { stroke:var(--pm-night); stroke-width:1.6; opacity:.6; }
.pm-plane path { fill:#f3effa; stroke:var(--pm-night); stroke-width:.9; stroke-linejoin:round; transition:fill .3s ease; transform:scale(.85); }
.pm-route.is-on .pm-plane path { fill:var(--pm-amber); transform:scale(1.25); }
.pm-pin { cursor:pointer; }
.pm-hit { fill:transparent; }
.pm-dot { fill:var(--pm-night); stroke:var(--pm-wing); stroke-width:2.4; transition:fill .25s ease, stroke .25s ease, transform .35s cubic-bezier(.16,1,.3,1); }
.pm-pin text, .pm-origin text { fill:#f3effa; font:600 15px Manrope,sans-serif; letter-spacing:-.01em; paint-order:stroke; stroke:#1b1136; stroke-width:4px; stroke-linejoin:round; transition:fill .25s ease; }
.pm-pin:hover text { fill:#fff; }
.pm-pin:hover .pm-dot { transform:scale(1.2); }
.pm-pin.is-on .pm-dot { fill:var(--pm-amber); stroke:var(--pm-amber); transform:scale(1.25); }
.pm-pin.is-on text { fill:#fff; font-weight:750; }
/* Each trip leaves from its own city. All four cities show as dots, and only the chosen one is lit and named. */
.pm-origin .pm-dot { transform:scale(.7); }
.pm-origin.is-on .pm-dot { fill:var(--pm-amber); stroke:var(--pm-night); stroke-width:2.5; transform:none; }
.pm-origin text { fill:#fff; font-weight:750; }
.pm-origin text, .pm-origin .pm-pulse { visibility:hidden; }
.pm-origin.is-on text, .pm-origin.is-on .pm-pulse { visibility:visible; }
.pm-pulse { fill:var(--pm-amber); opacity:.5; transform-box:fill-box; transform-origin:center; animation:pm-pulse 2.6s cubic-bezier(.16,1,.3,1) infinite; }
@keyframes pm-pulse { from { transform:scale(1); opacity:.5; } to { transform:scale(3.4); opacity:0; } }

/* Choosing a destination. It sits clear of the card, under the map it controls. */
.pm-choose { display:flex; align-items:center; justify-content:center; gap:12px; margin-top:12px; padding-right:372px; color:#cfc7e2; font-size:13px; font-weight:600; }
.pm-choose > div { display:flex; gap:6px; }
.pm-choose button { min-height:40px; padding:0 17px; border:1.5px solid #6a5a96; border-radius:20px; background:transparent; color:#f3effa; font:650 13px/1 Manrope,sans-serif; cursor:pointer; transition:background .2s ease, color .2s ease, border-color .2s ease; }
.pm-choose button:hover { border-color:var(--pm-wing); }
.pm-choose button[aria-pressed="true"] { background:var(--pm-amber); border-color:var(--pm-amber); color:var(--pm-night); }
.pm-choose button:focus-visible { outline:2px solid var(--pm-amber); outline-offset:2px; }
html[data-awaya-theme] body.awaya-ui p.pm-note { margin:20px 0 0; padding-right:372px; color:#cfc7e2; font-size:12px; line-height:1.4; text-align:center; }

/* The card. All four trips share one footprint, so it doesn't jump as you choose. */
.pm-card { position:absolute; right:0; bottom:0; z-index:2; display:grid; width:350px; border-radius:18px; background:#fff; color:#292530; box-shadow:0 30px 60px -14px rgba(0,0,0,.65), 0 2px 8px rgba(0,0,0,.2); }
.pm-panel { grid-area:1 / 1; display:flex; flex-direction:column; min-width:0; padding:16px 20px 18px; visibility:hidden; opacity:0; }
.pm-panel.is-on { visibility:visible; opacity:1; transition:opacity .35s ease; }
.pm-path { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; }
.pm-path strong { display:block; font-size:28px; font-weight:700; line-height:1.05; letter-spacing:-.03em; }
.pm-path > div > span { display:block; margin-top:3px; color:#68616f; font-size:12px; line-height:1.3; }
.pm-end { text-align:right; }
.pm-line-label { display:grid; justify-items:center; gap:5px; color:#68616f; font-size:11px; line-height:1.2; text-align:center; }
.pm-line-label i { position:relative; width:100%; border-top:2px dotted #a89fb3; }
.pm-line-label i::before, .pm-line-label i::after { content:""; position:absolute; top:-5px; width:8px; height:8px; border-radius:50%; background:#40364e; }
.pm-line-label i::before { left:0; }
.pm-line-label i::after { right:0; }
.pm-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pm-row > div { min-width:0; }
.pm-fare { margin-top:15px; }
.pm-fare strong { display:block; font-size:25px; font-weight:700; line-height:1.1; letter-spacing:-.03em; white-space:nowrap; }
.pm-fare small, .pm-stay em small { font-size:13px; font-weight:650; letter-spacing:-.01em; white-space:nowrap; }
.pm-fare > div > span { display:block; margin-top:3px; color:#68616f; font-size:12px; line-height:1.4; }
.pm-logo-qf, .pm-logo-va { display:block; flex:none; width:auto; height:32px; }
/* Cropped to the wordmark, because the line beneath it can't be read at this size. */
.pm-logo-kf { display:block; flex:none; width:120px; height:19px; margin:0 -16px; object-fit:cover; object-position:50% 31%; }
.pm-stay { margin-top:14px; padding-top:14px; border-top:1px solid #e9e5ee; }
.pm-stay span { display:block; color:#68616f; font-size:12px; font-weight:600; line-height:1.4; }
.pm-stay strong { display:block; margin-top:3px; font-size:14px; font-weight:650; line-height:1.3; letter-spacing:-.01em; }
.pm-stay em { display:block; margin-top:5px; font-size:19px; font-style:normal; font-weight:700; line-height:1.15; letter-spacing:-.025em; }
.pm-logo-mb { display:block; flex:none; width:auto; height:34px; }
.pm-logo-hi { display:block; flex:none; width:auto; height:36px; }
.pm-stay .pm-logo-text { flex:none; color:#292530; font-size:13px; font-weight:750; line-height:1.15; letter-spacing:-.01em; text-align:right; }

/* Under this width the card would sit on the east coast, so the map takes the full width and the phone and card share a row beneath it. */
@media (max-width:1240px) {
  .pm-stage { --ims-phone:270px; grid-template-columns:auto minmax(0,380px); grid-template-areas:"canvas canvas" "phone card"; justify-content:center; gap:30px 44px; max-width:860px; }
  .pm-canvas { grid-area:canvas; }
  .pm-phone { grid-area:phone; }
  .pm-card { grid-area:card; position:static; width:100%; align-self:center; }
  .pm-choose { padding-right:0; }
  html[data-awaya-theme] body.awaya-ui p.pm-note { padding-right:0; }
}
/* Stacked: heading, map, card, then the conversation. A whole-world map would be tiny here, so the map zooms to the chosen route
   and draws only that trip, because any other route would run off the edge. */
@media (max-width:760px) {
  .pm { padding:64px 20px; }
  .pm-stage { --ims-phone:min(100%,300px); grid-template-columns:minmax(0,1fr); grid-template-areas:"canvas" "card" "phone"; gap:22px; }
  .pm-card { max-width:390px; justify-self:center; }
  .pm-map { aspect-ratio:1.456; margin-top:8px; overflow:hidden; border-radius:16px; }
  .pm-route:not(.is-on), .pm-pin:not(.is-on), .pm-origin:not(.is-on) { visibility:hidden; }
  .pm-pin text, .pm-origin text { font-size:var(--pm-text,19px); stroke-width:calc(var(--pm-text,19px) * .26); }
  .pm-hit { r:34px; }
  .pm-choose { flex-direction:column; gap:8px; margin-top:14px; }
  .pm-choose > div { flex-wrap:wrap; justify-content:center; }
  .pm-panel { padding:16px 18px 18px; }
  .pm-logo-qf, .pm-logo-va { height:27px; }
  .pm-logo-mb { height:30px; }
}
@media (max-width:360px) {
  .pm-row { flex-wrap:wrap-reverse; justify-content:flex-end; }
  .pm-row > div { width:100%; }
}

/* On a phone the second phone goes, as it read as confusing at this size: the trip buttons lead, then the question and
   Awaya's answer as two bubbles that change with the trip (points.js), then the map and the card. Desktop keeps the phone.
   The canvas opens up so its buttons, map and note can be ordered with the bubbles and the card. */
.pm-chat { display:none; }
@media (max-width:760px) {
  .pm-stage { grid-template-areas:none; gap:20px; }
  .pm-card { grid-area:auto; order:4; }
  .pm-phone { display:none; }
  .pm-canvas { display:contents; }
  .pm-choose { order:1; margin-top:2px; }
  .pm-map { order:3; width:100%; margin-top:0; }
  html[data-awaya-theme] body.awaya-ui p.pm-note { order:5; margin-top:0; }
  .pm-choose button { min-height:44px; padding:0 18px; }
  /* Below its dot, like the other cities, so it doesn't sit on the route to Bali. */
  .pm-origin[data-route="bali"] text { transform:translate(10px,44px); text-anchor:middle; }

  .pm-chat { order:2; display:flex; flex-direction:column; gap:8px; font:400 16px/1.32 -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",sans-serif; letter-spacing:-.2px; }
  .pm-chat p { max-width:84%; margin:0; padding:9px 14px 10px; border-radius:19px; }
  .pm-ask { align-self:flex-end; border-bottom-right-radius:6px; background:#0875f3; color:#fff; }
  .pm-finding { align-self:flex-start; border-bottom-left-radius:6px; background:#e9e9eb; color:#111; }
}
@media (prefers-reduced-motion:reduce) {
  .pm-plane, .pm-comet, .pm-pulse { display:none; }
  .pm *, .pm *::before, .pm *::after { transition:none !important; animation:none !important; }
}
