/* The wallet in "A little context. A lot more you."
   One traveller's four programs, each drawn like that program's real member card at the tier it names:
   Qantas Bronze, Velocity Platinum, Hilton Honors Diamond and Marriott Bonvoy Gold Elite.
   Tapping a card shows which trip on this page it pays for. No panel: the passes sit directly on the page. */
.wm { min-width:0; width:100%; max-width:500px; justify-self:start; color:#292530; font-family:Manrope,sans-serif; text-align:left; font-variant-numeric:tabular-nums; }
.wm-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; padding:0 4px; }
.wm-head > span { display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:650; letter-spacing:-.01em; }
.wm-head img { display:block; }
.wm-head small { color:#5e5667; font-size:12px; font-weight:600; }
.wm-stack { position:relative; isolation:isolate; }

/* The passes follow each program's own member card. Each overlaps the one above it, like cards held in a wallet. */
.wm-pass { --ink:#fff; --soft:rgba(255,255,255,.84); --track:rgba(255,255,255,.3); --fill:#fff; position:relative; overflow:hidden; border-radius:16px; color:var(--ink); box-shadow:inset 0 1px 0 rgba(255,255,255,.28), 0 -8px 18px -12px rgba(20,12,28,.5), 0 16px 30px -20px rgba(20,12,28,.55); }
.wm-pass + .wm-pass { margin-top:-12px; }
.wm-face, .wm-body { position:relative; z-index:2; }

/* A logo with words set beneath it, as the program prints it. */
.wm-lockup { display:grid; gap:4px; flex:none; }
.wm-lockup img { display:block; width:100%; height:auto; }
.wm-lockup small { font-size:8px; font-weight:600; line-height:1; letter-spacing:.2em; text-transform:uppercase; white-space:nowrap; }

/* Qantas Bronze: bright red, white wordmark over "Frequent Flyer", the white flying kangaroo. */
.wm-qantas { z-index:1; background:linear-gradient(150deg,#ee1c25,#dd1620 58%,#c81018); }
.wm-qantas .wm-lockup { width:112px; }
.wm-roo { position:absolute; z-index:1; right:-10px; top:58px; width:172px; opacity:0; pointer-events:none; transition:opacity .5s ease; }
.wm-qantas.is-open .wm-roo { opacity:1; }
.wm-qantas .wm-inner { padding-right:36%; }

/* Velocity Platinum: charcoal, a lighter diagonal cut, white logo, the tier in light type. */
.wm-velocity { z-index:2; background:linear-gradient(140deg,#4d4c4e,#2f2e30 56%,#3b3a3c); }
.wm-velocity::before { content:""; position:absolute; z-index:1; inset:0; background:rgba(255,255,255,.055); clip-path:polygon(56% 0,100% 0,100% 74%); pointer-events:none; }
.wm-velocity .wm-logo { filter:brightness(0) invert(1); }

/* Hilton Honors Diamond: a sunset scene in a plum frame, a white inner line, the tier in script, the boxed logo over "Honors".
   The next card overlaps this one by 12px, so the frame closes above that overlap and always shows whole. */
.wm-hilton { z-index:3; background:linear-gradient(rgba(44,12,66,.14),rgba(30,8,50,.6)), url('/landing/hilton-scene.jpg') center 42% / cover #4b1f63; box-shadow:inset 0 0 0 5px #4b1f63, inset 0 -17px 0 0 #4b1f63, 0 -8px 18px -12px rgba(20,12,28,.5), 0 16px 30px -20px rgba(20,12,28,.55); }
.wm-hilton::before { content:""; position:absolute; z-index:1; inset:8px 8px 20px; border:1.5px solid rgba(255,255,255,.88); border-radius:10px; pointer-events:none; }
.wm-hilton .wm-face { padding:16px 22px 30px; }
.wm-hilton .wm-lockup { width:60px; justify-items:center; }
.wm-hilton .wm-lockup img { height:22px; object-fit:cover; filter:brightness(0) invert(1); }
.wm-hilton .wm-lockup small { font-size:7px; letter-spacing:.3em; margin-right:-.3em; }
.wm-hilton .wm-balance, .wm-hilton .wm-tier { text-shadow:0 1px 8px rgba(30,8,50,.55); }
.wm-hilton .wm-inner { padding:0 22px; }
.wm-hilton .wm-inner > :last-child { margin-bottom:38px; }

/* Marriott Bonvoy Gold Elite: deep metallic gold with a soft diagonal sheen, white logo, white type. */
.wm-bonvoy { z-index:4; background:linear-gradient(112deg,#6a4f2d,#7f6339 34%,#8f7248 50%,#785c35 66%,#5c4326); }
.wm-bonvoy .wm-logo { filter:brightness(0) invert(1); }

/* The tier name, printed on the card and always showing, so a card's status can be read even when it's closed. */
.wm-tier { flex:none; margin-left:16px; color:var(--ink); font-size:21px; font-weight:300; line-height:1; letter-spacing:-.02em; white-space:nowrap; }
.wm-script { font-family:"Snell Roundhand","Segoe Script","Brush Script MT",cursive; font-size:29px; font-weight:700; letter-spacing:0; }

/* A soft highlight that follows the pointer across the card, as light would. */
.wm-pass::after { content:""; position:absolute; z-index:1; inset:0; opacity:0; pointer-events:none; background:radial-gradient(240px circle at var(--sx,50%) var(--sy,0),rgba(255,255,255,.2),transparent 70%); transition:opacity .3s ease; }
@media (hover:hover) {
  .wm-pass:hover::after { opacity:1; }
  .wm-pass:not(.is-open):hover { transform:translateY(-3px); }
}

html[data-awaya-theme] body .wm h3 { margin:0; font:inherit; color:inherit; }
.wm-face { display:flex; align-items:center; width:100%; min-height:66px; padding:10px 16px 20px 18px; border:0; border-radius:18px; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.wm-face:focus-visible { outline:2px solid var(--ink); outline-offset:-5px; }
.wm-logo { display:block; flex:none; width:88px; height:34px; object-fit:contain; object-position:left center; }
.wm-balance { display:grid; justify-items:end; gap:0; margin-left:auto; }
.wm-balance strong { font-size:20px; font-weight:650; line-height:1.15; letter-spacing:-.025em; }
.wm-balance small { color:var(--soft); font-size:12px; line-height:1.3; }
.wm-chevron { flex:none; margin-left:14px; color:var(--soft); transition:transform .4s cubic-bezier(.16,1,.3,1); }
.is-open .wm-chevron { transform:rotate(180deg); }

/* The inside of a card: Awaya's own words, how far the points go, and the trip they pay for. */
.wm-body { display:grid; grid-template-rows:1fr; }
.wm[data-animate] .wm-body { transition:grid-template-rows .5s cubic-bezier(.22,.9,.3,1); }
.wm-inner { min-height:0; overflow:hidden; padding:0 18px; }
.wm-inner > :last-child { margin-bottom:26px; }
.wm[data-ready] .wm-pass:not(.is-open) .wm-body { grid-template-rows:0fr; }
.wm[data-ready] .wm-pass:not(.is-open) .wm-inner { visibility:hidden; }
.wm[data-animate] .wm-inner { transition:visibility .5s; }
html[data-awaya-theme] body .wm-bubble { position:relative; width:fit-content; max-width:88%; margin:0 0 16px 6px; padding:7px 12px 8px; border-radius:17px; background:#e9e9eb; color:#000; font:400 14px/19px -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif; letter-spacing:-.15px; text-align:left; transform-origin:0 100%; }
.wm-bubble::before { content:""; position:absolute; left:-5px; bottom:0; width:14px; height:16px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath fill='%23e9e9eb' d='M14 0v16H6C3 16 1 15.500 0 15c3-1 5-3 5-7V0z'/%3E%3C/svg%3E") center / contain no-repeat; }
.wm-meter { height:6px; border-radius:3px; background:var(--track); overflow:hidden; }
.wm-meter i { display:block; width:var(--used); height:100%; border-radius:3px; background:var(--fill); transition:width .9s cubic-bezier(.16,1,.3,1) .12s; }
.wm[data-ready] .wm-pass:not(.is-open) .wm-meter i { width:0; }
.wm-counts { display:flex; justify-content:space-between; gap:12px; margin-top:7px; color:var(--ink); font-size:12px; line-height:1.4; }
.wm-counts span:first-child { font-weight:650; }
.wm-trip { display:flex; align-items:center; gap:10px; margin-top:14px; color:inherit; text-decoration:none; }
.wm-trip img { display:block; flex:none; width:44px; height:44px; border-radius:10px; box-shadow:0 0 0 1.5px rgba(255,255,255,.55); object-fit:cover; object-position:center 46%; }
html[data-awaya-theme] body .wm-trip strong { display:block; color:var(--ink); font-size:13px; font-weight:650; line-height:1.3; }
.wm-trip small { display:block; color:var(--ink); font-size:12px; font-weight:650; line-height:1.4; text-decoration:underline; text-underline-offset:3px; }
.wm-trip:hover small { text-decoration-thickness:2px; }
.wm-trip:focus-visible { outline:2px solid var(--ink); outline-offset:3px; border-radius:10px; }
html[data-awaya-theme] body .wm .wm-note { display:flex; align-items:center; gap:7px; margin:0; padding:18px 4px 0; color:#68616f; font-size:12px; line-height:1.45; text-align:left; }
.wm-note svg { flex:none; display:block; }

/* One moment: the cards are dealt into the wallet, then the first one opens. */
.wm-pass { transition:transform .7s cubic-bezier(.16,1,.3,1), opacity .5s ease, box-shadow .35s ease; }
.wm-pass:nth-child(2) { transition-delay:.08s; }
.wm-pass:nth-child(3) { transition-delay:.16s; }
.wm-pass:nth-child(4) { transition-delay:.24s; }
.wm.is-settled .wm-pass { transition-delay:0s; transition-duration:.35s; }
.wm.is-before .wm-pass { opacity:0; transform:translateY(34px) rotate(-1.4deg); }
.wm.is-before .wm-meter i { width:0; }
.wm:not(.is-before) .is-open .wm-bubble { animation:wm-pop .42s cubic-bezier(.2,1.25,.4,1) .12s backwards; }
@keyframes wm-pop { from { opacity:0; transform:scale(.8); } to { opacity:1; transform:none; } }

/* The section keeps the page's two-column frame. Stacked, the words come first. */
@media (max-width:860px) {
  .wm { order:2; max-width:none; justify-self:stretch; }
}
@media (max-width:420px) {
  .wm-face { padding-left:14px; padding-right:12px; }
  .wm-logo { width:72px; }
  .wm-inner { padding:0 14px; }
  .wm-qantas .wm-inner { padding-right:14px; }
  .wm-qantas .wm-lockup { width:96px; }
  .wm-qantas .wm-lockup small { font-size:7px; letter-spacing:.17em; }
  .wm-roo { width:112px; top:auto; bottom:10px; right:-6px; }
  .wm-hilton .wm-face { padding:16px 18px 30px; }
  .wm-hilton .wm-inner { padding:0 18px; }
  .wm-hilton .wm-lockup { width:52px; }
  .wm-hilton .wm-lockup img { height:19px; }
  .wm-hilton .wm-lockup small { font-size:6px; }
  .wm-tier { margin-left:10px; font-size:15px; font-weight:400; }
  .wm-script { font-size:20px; font-weight:700; }
  .wm-balance strong { font-size:18px; }
  .wm-chevron { margin-left:10px; }
}
/* The narrowest phones have no room beside the logo, so the tier sits under it. */
@media (max-width:350px) {
  .wm-face { display:grid; grid-template-columns:auto 1fr auto; column-gap:0; row-gap:4px; }
  .wm-tier { grid-area:2 / 1; justify-self:start; margin-left:0; }
  .wm-balance { grid-area:1 / 2 / 3 / 3; }
  .wm-chevron { grid-area:1 / 3 / 3 / 4; }
}
@media (prefers-reduced-motion:reduce) {
  .wm *, .wm *::before, .wm *::after, .wm-pass { transition:none !important; animation:none !important; }
}

/* On a phone the words are the heading and the description only. The read-only promise moves into the note under the
   wallet, and the link goes, since the header's Join the beta is on screen throughout. */
.wm-readonly { display:none; }
@media (max-width:760px) {
  html[data-awaya-theme="forest-sage"] body.marketing-page .memory-story :is(.privacy-note,.text-action) { display:none; }
  html[data-awaya-theme="forest-sage"] body.marketing-page .memory-story .feature-copy > p { max-width:30em; margin-top:14px; }
  .wm-readonly { display:inline; }
}
