
*,*::before,*::after {
  box-sizing: border-box;
}

ul[class], ol[class] {
  padding: 0;
}

body,h1,h2,h3,h4,p,ul[class],ol[class],li,figure,figcaption,blockquote,dl,dd {
  margin: 0;
}

body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Remove list styles on ul, ol elements with a class attribute */
ul[class], ol[class] {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

input, button, textarea, select {
  font: inherit;
}

/*------------ Main Styles --------------------------*/

body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: calc(0.25em + 0.625vw);
}

a {
    text-decoration: none;
    color: inherit;
}

h1,h2,h3,h4 {
    font-family: 'Prompt';
    font-weight: 600;
    line-height: 0.85em;
    letter-spacing: -0.025em;
}

.btn {
  background: rgb(11,205,241);
  background: linear-gradient(41deg, #0BCDF1 0%, #24CD98 100%);
  color: white;
  font-family: 'Prompt', sans-serif;
  border-radius: 1.25em;
  line-height: 2.5em;
  display: inline-block;
  letter-spacing: 0.03em;
  padding: 0 2.8em;
  box-shadow: 5px 5px 10px rgba(13,44,90,.18);
  border: none;
  max-width: 100%;
  transition: all 100ms ease-in-out;
  cursor: pointer;
}

.btn:hover {
  color: #254881;
}

.btn:active {
  color: #254881;
  box-shadow: 0 0 0 rgba(13,44,90,.18);
}

#hero {
    color: #254881;
    background-image: url(../img/hero-bg.jpg);
    background-size: 100vw 56.25vw;
    height: 56.25vw;
    position: relative;
    padding-top: 4.9479vw;
    margin-bottom: 2.1vw;
}

#hero:after {
    content: "";
    display: block;
    background-image: url(../img/header-transition.svg);
    background-size: 101%;
    background-position: center bottom;
    width: 100%;
    height: 14.5vw;
    position: absolute;
    bottom: -2.1vw;
    background-repeat: no-repeat;
}

#main-logo {
    width: 15.4166vw;
    margin-left: 6.04166vw;
    margin-bottom: 3.125vw;
}

#site-title {
    font-size: 4.75em;
    margin-bottom: 0.7em;
}

#hero-blurb {
    width: 36.4583vw;
    margin-left: 11.1458vw;
    position: relative;
    z-index: 100;
}

#hero-blurb .content {
    font-size: 1.25em;
    margin-top: 1.5em;
    width: 29.4791vw;
    margin-left: 0.2vw;
}

#cta {
  margin-top: 4.5em;
  text-align: center;
  display:inline-flex;
  flex-direction:column;
  align-items:baseline
}

#cta .btn {
  font-size: 1.5em;
  width: 100%;
}

#cta-description {
  font-weight: 600;
  color: white;
  text-align: center;
  display: inline-block;
  text-shadow: 0 0 34px #445889;
  font-size: 1.125em;
  line-height: 1em;
  letter-spacing: -0.025em;
  margin-top: 0.9em;
  width: 100%;
}

#header-anim {
    position: absolute;
    top: 19.0625vw;
    left: 46.875vw;
    width: 42.7083333vw;
    height: 34.583333vw;
    -webkit-mask-image: radial-gradient(closest-corner, black 65%, transparent 70%);
    mask-image: radial-gradient(closest-corner, black 65%, transparent 70%);
}

#anim-notification {
  background-color: rgba(255,255,255, 0.2);
  border-radius: 5px;
  position: absolute;
  display: inline-block;
  width: 23em;
  padding: 1.5em 2em;
  right: 20vw;
  top: 10vw;
  opacity: 0;
  transition: opacity 750ms ease-in-out;
}

#anim-notification.visible {
  opacity: 1;
}

#anim-notification span {
  font-family: 'Prompt', sans-serif;
  display: block;
  font-size: 1.5em;
  color: white;
  line-height: 1em;
}

#anim-n-title {
  border-bottom: 1px solid white;
  padding-bottom: 0.75em;
  margin-bottom: 0.75em;
}

#anim-n-message {
  font-size: 1.375em;
}

.feature-block {
  text-align: center;
  padding: 5vw 0;
}

.feature-anim {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  z-index: 100;
}

.anim-hidden {
  opacity: 0;
}

@keyframes fade-in {
  from {opacity: 0; transform: translateY(4vw)}
  to {opacity: 1;}
}
.fade-in-element {
  animation: fade-in 1s;
}

.feature-description {
  display: inline-block;
  width: 32.3958vw;
  text-align: left;
  vertical-align: middle;
  padding-left: 5vw;
  margin-top: -4vw;
}

.feature-heading {
  font-size: 2.25em;
  color: #14233C;
  margin-bottom: 1.6em;
}

.feature-heading:before {
  content: "";
  display: block;
  height: 5px;
  width: 86px;
  background: linear-gradient(90deg, #0BCDF1 0%, #29CC86 100%);
  margin-bottom: 0.5em;
}

.feature-content {
  color: #808080;
  line-height: 1.875em;
}

.feature-anim {
  position: relative;
}

#freeze-bills {
  padding-bottom: 3vw;
}

#anim-meter {
  width: 42.7083vw;
  left: -2vw;
}

#account-opening {
  background-image: url(../img/poly-filled.svg);
  background-size: cover;
  padding: 20vw 0;
}

#account-opening .feature-description {
  padding: 0 5vw 0 0;
  left: -2vw;
  position: relative;
}

#account-opening .feature-heading {
  color: #254881;
}

#account-opening .feature-heading:before {
  background: #254881;
}

#account-opening .feature-content {
  color: #14233C;
}

#anim-card-group {
  filter: drop-shadow(3vw 3vw 3.5vw rgba(100, 134, 178, 0.75));
  width: 29.6875vw;
  display: inline-block;
  vertical-align: middle;
  left: 1vw;
  position: relative;
  
}

#anim-card, #anim-card-intro {
  width: 100%;
  -webkit-mask-image: url(../img/card-mask.png);
  -webkit-mask-size: 100%;
  mask-image: url(../img/card-mask.png);
  mask-size: 100%;
}

#anim-card {
  opacity: 0;
  vertical-align: middle;
  animation: none;
  position: absolute;
  top: 0;
  left: 0;
}

#card-clip {
  width: 0;
  height: 0;
}

#spending-insights {
  padding: 2vw 0 14vw 0;
}

#anim-spending {
  width: 43.22916vw;
  left: -2vw;
}

#easy-payments {
  background-color: #ebebeb;
  position:relative;
  padding: 6vw 0 13vw 0;
}

#easy-payments.osx {
  background-color: #efeeef;
}

#easy-payments:before {
  content: "";
  display: block;
  background-image: url(../img/grey-bg.svg);
  background-size: 100vw 14.5vw;
  background-position: left top;
  width: 100%;
  height: 14.5vw;
  position: absolute;
  top: -10vw;
  background-repeat: no-repeat;
}

#easy-payments.osx:before {
  background-image: url(../img/grey-bg-osx.svg);
}

#easy-payments .feature-description {
  margin-top: -3vw;
}

#anim-payments {
  right: -3vw;
  width: 44.27083vw;
}

#holiday-money {
  background-color: #1EC4E2;
  color: white;
  position: relative;
  padding: 9vw 0 6vw 0;
}

#holiday-money:before {
  content: "";
  display: block;
  background-image: url(../img/blue-bg.svg);
  background-size: 100vw 20vw;
  background-position: left top;
  width: 100%;
  height: 20vw;
  position: absolute;
  top: -10vw;
  background-repeat: no-repeat;
}

#holiday-money .feature-description {
  margin-top: -2vw;
}

#holiday-money .feature-heading, #holiday-money .feature-content {
  color: white;
}

#holiday-money .feature-heading:before {
  background: white;
}

#anim-globe {
  width: 34.89583vw;
  left: -3vw;
  -webkit-mask-image: radial-gradient(closest-corner, black 65%, transparent 70%);
  mask-image: radial-gradient(closest-corner, black 65%, transparent 70%);
}

#waiting-list {
  background-image: url(../img/poly-bg.svg);
  background-size: cover;
  padding: 8vw 0 10vw 0;
  text-align: center;
}

#signup-form h2 {
  font-size: 2.25em;
  color: #254881;
  line-height: 0.8em;
}

#signup-form .instructions {
  color:#14233C;
  font-size: 1.375em;
  font-weight: 600;
  margin: 2em 0 2.5em 0;
}

.frm-input {
  border: 3px solid #0BCDF1;
  border-radius: 4px;
  padding: 0.75em 1em;
  font-size: 1.25em;
  background-color: #EFF4F5;
  max-width: 100%;
  width: 26.77083vw;
}

#frm-email {
  border-color: #29CC86;
}

#frm-error {
  color: #dd3333;
  font-weight: bold;
  margin-top: 1.5em;
}

#frm-error p {
  line-height: 1.5em;
}

#frm-submit {
  font-size: 1.375em;
  padding-left: 5em;
  padding-right: 5em;
  margin-top: 1.75em;
  margin-bottom: 1em;
  outline: 0;
}

#frm-submit:disabled {
  background: #aaa;
  color: #777;
}

#frm-accept-label a {
  text-decoration: underline;
}

#page-footer {
  background-color: #14233C;
  position: relative;
  padding: 3vw 3vw 2.5vw 3vw;
}

#social-links {
  position: absolute;
  top: 50%;
  margin-top: -14px;
  right: 3vw;
  color: white;
}

#social-links li {
  display: inline-block;
  height: 28px;
  line-height: 28px;
}

.social-link {
  width: 28px;
  height: 28px;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  font-size: 0;
  margin-left: 28px;
}

#social-links li:first-child .social-link {
  margin-left: 0;
}

.facebook { background-image: url(../img/facebook.svg); }
.twitter { background-image: url(../img/twitter.svg); }
.linkedin { background-image: url(../img/linkedin.svg); }

@media only screen and (max-width: 1620px) {
  #site-title {
    font-size: 4.25em;
  }

  #hero-blurb {
    width: 38vw;
  }

  #hero-blurb .content {
    width: 90%;
  }
}

@media only screen and (max-width: 1620px) {
  #site-title {
    font-size: 4em;
  }
}

@media only screen and (max-width: 768px) {

  body {
    font-size: calc(0.7em + 0.4166667vw);
  }

  #main-logo {
    width: 60%;
    margin: 0 0 2em 5%;
    text-align: left;
  }

  #main-logo-text {
    fill: white;
  }

  #hero {
    height: auto;
    background: rgb(70,194,232);
    background-image: url(../img/hero-bg.jpg), linear-gradient(0deg, rgba(70,194,232,1) 70%, rgba(67,160,232,1) 100%);
    background-position: 85% bottom;
    background-repeat: no-repeat;
    padding-bottom: 107vw;
    background-size: 230%
  }

  #hero-blurb {
    width: 100%;
    padding: 0 5%;
    margin-left: 0;
  }

  #site-title {
    color: white;
    font-size: 4.5em;
    line-height: 1em;
  }

  #hero-blurb .content {
    width: 100%;
    color: white;
    max-width: 500px;
  }

  #cta {
    margin-top: 4.5em;
    display: block;
  }

  #cta .btn {
    padding: 0;
    width: 100%;
  }

  #cta-description {
    font-size: 1.325em;
  }

  #header-anim {
    width: 98.22916659vw;
    height: auto;
    top: auto;
    left: -2.7vw;
    bottom: 6.1vw;
  }

  #anim-notification {
    bottom: 80vw;
    right: 36vw;
    top: auto;
  }

  .feature-block {
    position: relative;
  }

  #freeze-bills, #spending-insights, #easy-payments, #holiday-money {
    padding-left: 5%;
    position: relative;
    padding-top: 80vw;
    padding-bottom: 12em;
  }

  #freeze-bills {
    padding-top: 85vw;
    padding-bottom: 8em;
  }

  #holiday-money {
    padding-top: 90vw;
    padding-bottom: 10em;
  }

  #anim-meter, #anim-card-group, #anim-spending, #anim-payments, #anim-globe {
    display: block;
    width: 90%;
    left:5%;
    right: 0;
    position: absolute;
    top: 10vw
  }

  #anim-meter, #anim-globe {
    top: 20vw;
  }

  #anim-card-group {
    width: 70%;
    left: 15%;
    top: 12em;
  }

  #anim-globe {
    width: 70%;
    left: 15%;
  }

  #account-opening {
    background-position: center;
    padding-bottom: 22em;
    padding-top: calc(11em + 60vw);
    background-size: auto 106%;
    padding-left: 5%;
  }


  .feature-description {
    display: block;
    width: 90%;
    margin-top: 2em !important;
    padding: 0;
    left:0 !important;
    right: 0 !important;
  }

  .feature-heading {
    margin-bottom: 1em;
  }

  #easy-payments:before, #holiday-money:before {
    margin-left: -5%;
  }

  #waiting-list {
    padding: 5em 5%;
  }

  #frm-email {
    margin-left: 0;
  }

  #signup-form .btn { 
    padding: 0;
    width: 100%;
  }

  #page-footer {
    padding: 5%;
  }

}

@media only screen and (max-width: 500px) { 

  #hero {
    padding-bottom: 115vw;
  }

  #site-title {
    font-size: 3.5em;
  }

  #cta-description {
    font-size: 1em;
  }

  #anim-notification {
    width: 16em;
    padding: 0.75em;
  }

  #anim-notification span {
    font-size: 1.125em;
  }

  #spending-insights, #easy-payments, #holiday-money {
    padding-bottom: 8em;
  }

  #freeze-bills {
    padding-bottom: 4em;
  }

  #account-opening {
    padding-bottom: 18em;
  }

  #footer-logo {
    margin: 0 auto;
    position: relative;
    left: -1.5vw;
  }

  #social-links {
    display: block;
    position: static;
    text-align: center;
    margin: 2em auto;
    top: 0;
    padding-left: 0;
    width: 100%;
  }

  .social-link {
    width: 10vw;
    height: 10vw;
    margin-left: 10vw;
  }

  #social-links li {
    display: inline-block;
    height: 10vw;
    line-height: 10vw;
  }

}

.frm-input:placeholder-shown + label {
  cursor: text;
  max-width: 66.66%;
  white-space: nowrap;
  overflow: hidden;
  color: gray;
  text-overflow: ellipsis;
  transform-origin: left bottom;
  transform: translate(0, 2rem) scale(1.5);
  transition: transform 300ms;
}

.frm-input:not(:placeholder-shown) + label,
.frm-input:focus + label {
  transform: translate(0, 0) scale(1);
  cursor: pointer;
  transition: transform 300ms;
}

.floating-label-field:focus {
  outline: 0;
  box-shadow: 0;
}

.floating-label-field::placeholder {
  color: transparent;
}

.floating-label-field {
  position: relative;
  width: 26.77083vw;
  max-width: 100%;
  height: 4rem;
}

.floating-label-field  + .floating-label{
  line-height: 1;
  font: inherit;
  position: relative;
}

.floating-label-field  + .floating-label {
  position: absolute;
  padding: 0 4px;
  top: -6px;
  left: 16px;
  height: auto;
  background: rgb(239,244,245);
  background: linear-gradient(0deg, rgba(239,244,245,1) 71%, rgba(255,255,255,0) 67%);
  user-select: none;
}

.frm-details {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-around;
  width: 60%;
  margin: auto;
}

@media only screen and (max-width: 600px) {
  .frm-input {
    width: 100%;
  }

  .floating-label-field {
    width: 100%;
  }

  .frm-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 140px;
  }
}

@media only screen and (min-width: 601px) and (max-width: 768px) {
    .frm-details {
      width: 70%;
    }
}