/* Homepage hero: phone-first order, both store links together, sticky download bar,
   desktop QR code and the A/B hero variant. */

/* Variant B: one purple surface from header to hero, and an expense summary card. */
.hero-card, .hero-b-tagline { display: none; }
html.hero-b .banner-info .slid .callbacks_container { display: none; }

html.hero-b .header-top { background: #3b1c78; }
html.hero-b .header-top .container { display: flex; align-items: center; gap: 14px; }
html.hero-b .header-top .container::before, html.hero-b .header-top .container::after { display: none; }
html.hero-b .head-logo { float: none; width: auto; white-space: nowrap; }
html.hero-b .head-logo img { width: 44px !important; margin: 0 !important; }
html.hero-b .head-nav { float: none; width: auto; margin-left: auto; }
html.hero-b .top-nav { float: none; margin: 0; }
html.hero-b .head-logo a { color: #fff; }
html.hero-b .head-nav { font-size: 0; }
html.hero-b .head-nav br { display: none; }
html.hero-b .head-nav input { font-size: 13px; font-weight: 600; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; padding: 7px 16px; }
html.hero-b .banner-info { background: radial-gradient(110% 90% at 80% 25%, #6234b4 0%, #4b2491 45%, #3b1c78 100%) !important; }
html.hero-b .banner-info .banner-bg { display: none !important; }
html.hero-b .banner-info .value-proposition,
html.hero-b .banner-info .platform-availability,
html.hero-b .banner-info .platform-note { display: none; }
html.hero-b .banner-info .hero-b-tagline { display: block; max-width: 30em; font-size: 17px; line-height: 1.6; color: #e4d9fa; }

.hero-card { box-sizing: border-box; width: 100%; max-width: 400px; margin: 0 auto; text-align: left; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
html.hero-b .banner-info .hero-card { display: block; }
.banner-info .hero-card p { margin: 0; padding: 0; }

/* Where entries come from, as on the invite cards. */
.hero-card .hc-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 12px; }
.hero-card .hc-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 16px; white-space: nowrap; }
.hero-card .hc-sms { background: #e5f6ea; color: #17803a; }
.hero-card .hc-bank { background: #fff0e0; color: #b25400; }
.hero-card .hc-pay { background: #eceaf1; color: #2b2930; }
.hero-card .hc-mail { background: #e6effd; color: #1d5fd0; }
.hero-card.region-us .hc-sms { order: 1; }

.hero-card .hc-panel { padding: 8px; background: #fff; color: #1c1b1f; border-radius: 24px; box-shadow: 0 30px 60px -12px rgba(14, 4, 40, 0.55); }
.hero-card .hc-head { padding: 16px 16px 14px; background: #f5f1fd; border-radius: 18px; }
.banner-info .hero-card .hc-title { font-size: 13px; font-weight: 600; color: #6b6280; }
.banner-info .hero-card .hc-total { margin: 2px 0 10px; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: #241047; }
.hero-card .hc-bar { height: 8px; background: #e3daf6; border-radius: 99px; overflow: hidden; }
.hero-card .hc-bar span { display: block; height: 100%; background: #6d3fd1; border-radius: 99px; }
.banner-info .hero-card .hc-budget { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; line-height: 1.4; color: #6b6280; }
.hero-card .hc-left { color: #27782b; font-weight: 700; white-space: nowrap; }
.banner-info .hero-card .hc-sub { padding: 12px 10px 0; font-size: 14px; font-weight: 800; color: #241047; }
.hero-card ul { list-style: none; margin: 0; padding: 0 8px; }
.hero-card li { display: flex; align-items: center; gap: 10px; min-height: 60px; border-bottom: 1px solid #f0edf6; }
.hero-card li:last-child { border-bottom: 0; }
.hero-card li b { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.3; }
.hero-card li.has-refund b { flex: 0 1 auto; }
.hero-card .hc-refund { flex: 1 0 auto; display: flex; justify-content: center; align-items: center; }
.hero-card .hc-refund svg { box-sizing: content-box; height: 12px; padding: 4px 0 4px 8px; background: #e7f4e8; color: #27782b; border-radius: 99px 0 0 99px; }
.hero-card .hc-refund span { padding: 0 9px 0 4px; font-size: 11.5px; font-weight: 700; line-height: 20px; white-space: nowrap; background: #e7f4e8; color: #27782b; border-radius: 0 99px 99px 0; }
.hero-card .hc-ic { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; }
.hero-card .hc-ic img { width: 21px; height: 21px; }
.hc-dining { background: #ebf0f5; } .hc-bills { background: #f5eef8; } .hc-groceries { background: #f4f6eb; } .hc-shopping { background: #fdf0ec; } .hc-travel { background: #f8f5eb; } .hc-leisure { background: #eef3fb; } .hc-transfer { background: #f3effa; }
.hero-card .hc-amt { font-size: 14.5px; font-weight: 800; text-align: right; white-space: nowrap; line-height: 1.3; }
.hero-card.region-ae li:last-child .hc-amt { color: #8c5a1e; }
.hero-card .hc-amt s { display: block; font-size: 12px; font-weight: 500; color: #8a8496; }
@media (max-width: 380px) {
  .hero-card .hc-pills { gap: 4px; }
  .hero-card .hc-pill { padding: 5px 7px; font-size: 11px; gap: 4px; }
  .hero-card .hc-pill svg { width: 12px; height: 12px; }
  .hero-card li { gap: 8px; }
  .hero-card li b { font-size: 12.5px; }
  .hero-card .hc-amt { font-size: 13.5px; }
  html.hero-b .banner-info .slid { padding-left: 10px !important; padding-right: 10px !important; }
}

/* Variant B on tablets and computers: message and buttons left, card right, vertically centred. */
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  html.hero-b .banner-info .container { display: flex; align-items: center; gap: 32px; padding-top: 48px; padding-bottom: 56px; }
  html.hero-b .banner-info .container::before, html.hero-b .banner-info .container::after { display: none; }
  html.hero-b .banner-info .slid { order: 2; float: none; width: 42%; margin: 0; }
  html.hero-b .banner-info .banner-info-left { order: 1; float: none; width: 58%; min-height: 0; padding-top: 0; }
  html.hero-b .banner-info .banner-info-left h1 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -0.02em; }
  html.hero-b .banner-info .banner-info-left .home-rating { align-self: flex-start; color: #fff; margin: 18px 0 0 !important; }
  html.hero-b .banner-info .banner-info-left .hero-b-tagline { margin: 12px 0 14px; }
  html.hero-b .banner-info .banner-info-left .banner-buttons { margin-left: 0 !important; }
  html.hero-b .banner-info .banner-buttons .download-badges .badge-google img { margin-left: 0 !important; }
  html.hero-b .banner-info .banner-buttons .download-badges .badge-google { padding-left: 0; }
}
@media (min-width: 768px) and (max-width: 991px) {
  html.hero-b .banner-info .container { gap: 12px; }
  html.hero-b .banner-info .slid { width: 50%; }
  html.hero-b .banner-info .banner-info-left { width: 50%; }
  .hero-card .hc-pills { gap: 4px; }
  .hero-card .hc-pill { padding: 5px 7px; font-size: 11px; gap: 4px; }
  .hero-card .hc-pill svg { width: 12px; height: 12px; }
}

/* Google Play and the App Store always appear together; the visitor's own store goes first. */
html.os-ios .download-badges .badge-ios, html.os-ios .sticky-download .sticky-ios { order: -1; }

.hero-qr, .sticky-download { display: none; }

/* Computers (mouse or trackpad): scanning with a phone is the quickest way in. */
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  html:not(.os-ios):not(.os-android) .banner-info .banner-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
  html:not(.os-ios):not(.os-android) .banner-info .banner-buttons .download-badges { margin-top: 0; }
  html:not(.os-ios):not(.os-android) .hero-qr { display: flex; align-items: center; gap: 12px; }
  .hero-qr img { width: 112px; height: 112px; border-radius: 10px; }
  .hero-qr span { max-width: 9em; color: #dff7ff; font-size: 14px; line-height: 1.4; }
}

/* Phones, portrait and landscape: headline, rating, button, then image and text. */
@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) {
  .banner-info .container { display: flex; flex-direction: column; width: auto; }
  .banner-info .container::before, .banner-info .container::after { display: none; }
  .banner-info .banner-info-left { display: contents; }
  .banner-info .banner-info-left > * { margin-left: 0 !important; margin-right: 0; padding-left: 15px; padding-right: 15px; text-align: center; }
  .banner-info .banner-info-left h1 { order: 1; text-align: center; margin: 24px 0 0; font-size: 28px; line-height: 1.15; }
  .banner-info .banner-info-left .home-rating { order: 2; justify-content: center; flex-wrap: wrap; color: #fff; margin: 12px 0 0 !important; }
  .banner-info .banner-info-left .banner-buttons { order: 3; margin: 6px 0 0; }
  .banner-info .banner-info-left .platform-availability { order: 4; margin: 14px 0 0; font-size: 14px; }
  .banner-info .slid { order: 5; float: none; width: 100%; }
  .banner-info .banner-info-left .value-proposition { order: 6; margin: 20px auto 12px; }
  .banner-info .banner-info-left .platform-note { order: 7; margin: 0 auto 24px; font-size: 14px; }
  .banner-info .banner-info-left .clearfix { display: none; }
  .banner-info .banner-info-left .download-badges { flex-direction: row; justify-content: center; align-items: center; gap: 10px; margin-top: 8px; }
  .banner-info .download-badges a { flex: 0 1 160px; min-width: 0; }
  .banner-info .download-badges a img { width: 100% !important; height: 50px !important; object-fit: contain; margin: 0 !important; }
  .banner-info .download-badges .badge-google { padding-left: 0; }
  html.hero-b .banner-info .slid { margin-top: 22px !important; padding-left: 15px; padding-right: 15px; }
  html.hero-b .banner-info .banner-info-left .hero-b-tagline { order: 6; margin: 22px auto 28px !important; padding: 0 22px; font-size: 15px; }

  .sticky-download {
    display: flex; justify-content: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #2a1458; box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(110%); visibility: hidden; transition: transform 0.25s ease, visibility 0.25s;
  }
  .sticky-download.is-visible { transform: none; visibility: visible; }
  .sticky-download a { flex: 1 1 0; max-width: 220px; padding: 12px 8px; border-radius: 999px; background: #fff; color: #2a1458; font-weight: 700; font-size: 14px; text-align: center; white-space: nowrap; text-decoration: none; }
  /* Leave room so the bar never covers the end of the page. */
  body { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .sticky-download { transition: none; } }
