/* PaaKaaR v98 — Android download CTA refinements.
   Scoped to the Landing application card; all other pages/themes remain unchanged. */

/* Use high-contrast typography inside the white Android download button in dark mode. */
html.pk-landing[data-theme="dark"] body.landing-page
.landing-app-download a.landing-app-download__button small {
  color: #505b66 !important;
  -webkit-text-fill-color: #505b66 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  font-weight: 750;
}

/* Three platform marks around the actual PaaKaaR logo (decorative, not links). */
html.pk-landing body.landing-page .landing-app-download__visual {
  isolation: isolate;
}
html.pk-landing body.landing-page .landing-app-download__spark {
  z-index: 2;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.75);
  transition: background-color .2s ease, color .2s ease,
              border-color .2s ease, box-shadow .2s ease;
}
html.pk-landing body.landing-page .landing-app-download__spark--one {
  top: 10px;
  left: 1px;
}
html.pk-landing body.landing-page .landing-app-download__spark--two {
  top: auto;
  right: 0;
  bottom: 12px;
}
html.pk-landing body.landing-page .landing-app-download__spark--three {
  left: 7px;
  bottom: 7px;
}
html.pk-landing body.landing-page .landing-app-download__spark svg {
  width: 25px;
  height: 25px;
  display: block;
}
html.pk-landing body.landing-page .landing-app-download__ios-mark {
  display: block;
  direction: ltr;
  font: 800 16px/1 Arial, Helvetica, sans-serif;
  letter-spacing: -.045em;
}

/* Light theme: fresh, bright badges complement the teal hero card. */
html.pk-landing[data-theme="light"] body.landing-page .landing-app-download__orb {
  background: linear-gradient(140deg, rgba(255,255,255,.26), rgba(255,255,255,.08));
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 16px 29px rgba(0,64,66,.20);
}
html.pk-landing[data-theme="light"] body.landing-page .landing-app-download__spark--ios {
  background: #ebf4ff;
  color: #315f8b;
  border-color: #fff;
  box-shadow: 0 6px 17px rgba(6,60,80,.22);
}
html.pk-landing[data-theme="light"] body.landing-page .landing-app-download__spark--android {
  background: #eaffef;
  color: #137247;
  border-color: #fff;
  box-shadow: 0 6px 17px rgba(6,60,80,.22);
}
html.pk-landing[data-theme="light"] body.landing-page .landing-app-download__spark--web {
  background: #fff5dd;
  color: #8b640e;
  border-color: #fff;
  box-shadow: 0 6px 17px rgba(6,60,80,.22);
}

/* Dark theme: contrast on the same teal download card without neon overglow. */
html.pk-landing[data-theme="dark"] body.landing-page .landing-app-download__orb {
  background: linear-gradient(145deg, rgba(15,46,55,.70), rgba(5,38,49,.45));
  border-color: rgba(136,241,222,.56);
  box-shadow: 0 17px 32px rgba(0,11,21,.35), inset 0 1px 12px rgba(140,255,231,.06);
}
html.pk-landing[data-theme="dark"] body.landing-page .landing-app-download__spark--ios {
  background: #20354c;
  color: #e6f2ff;
  border-color: #7da6c7;
  box-shadow: 0 7px 18px rgba(0,11,21,.37);
}
html.pk-landing[data-theme="dark"] body.landing-page .landing-app-download__spark--android {
  background: #143b36;
  color: #8cf5cb;
  border-color: #6dd9b7;
  box-shadow: 0 7px 18px rgba(0,11,21,.37);
}
html.pk-landing[data-theme="dark"] body.landing-page .landing-app-download__spark--web {
  background: #443821;
  color: #ffe0a0;
  border-color: #deb66f;
  box-shadow: 0 7px 18px rgba(0,11,21,.37);
}

/* Keep the existing app logo white in either theme, as requested in v87. */
html.pk-landing body.landing-page .landing-app-download__orb img {
  filter: brightness(0) invert(1);
}

@media (max-width: 750px) {
  html.pk-landing body.landing-page .landing-app-download__visual {
    min-width: 170px;
    width: 170px;
    height: 155px;
  }
  html.pk-landing body.landing-page .landing-app-download__orb {
    width: 118px;
    height: 118px;
  }
  html.pk-landing body.landing-page .landing-app-download__spark {
    width: 37px;
    height: 37px;
    border-radius: 12px;
  }
  html.pk-landing body.landing-page .landing-app-download__spark--one {
    top: 4px;
    left: 6px;
  }
  html.pk-landing body.landing-page .landing-app-download__spark--two {
    top: auto;
    right: 4px;
    bottom: 4px;
  }
  html.pk-landing body.landing-page .landing-app-download__spark--three {
    left: 8px;
    bottom: 2px;
  }
  html.pk-landing body.landing-page .landing-app-download__spark svg {
    width: 22px;
    height: 22px;
  }
  html.pk-landing body.landing-page .landing-app-download__ios-mark {
    font-size: 13px;
  }
}
