/*! MOST Public 1.0 | progressive enhancement for the existing public pages */
.most-public-page {
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.78), transparent 28rem),
    var(--most-page);
}

.most-public-page .topbar {
  background: linear-gradient(115deg, var(--most-brand-strong), var(--most-brand));
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.1), var(--most-shadow-sm);
}

.most-public-page .brand__mark,
.most-public-page .head__logo {
  filter: drop-shadow(0 4px 8px rgba(16, 35, 61, 0.2));
}

.most-public-page .brand__caption {
  margin-top: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.25;
  opacity: 0.96;
  text-shadow: 0 1px 2px rgba(10, 27, 50, 0.28);
}

.most-public-page .most-brand-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  line-height: 0;
  text-decoration: none;
}

.most-public-page .most-brand-home img {
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition:
    filter var(--most-motion) var(--most-ease),
    transform var(--most-motion) var(--most-ease);
}

.most-public-page .most-brand-home:hover img {
  filter: drop-shadow(0 8px 13px rgba(10, 27, 50, 0.34));
  transform: translateY(-3px) scale(1.045);
}

.most-public-page .most-brand-home:active img {
  filter: drop-shadow(0 3px 5px rgba(10, 27, 50, 0.25));
  transform: translateY(0) scale(0.975);
}

.most-public-page .topbar__link {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0.14);
}

.most-public-page .topbar__link:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.most-public-page .topbar__link:active {
  transform: translateY(0);
}

.most-public-page--home .hero,
.most-public-page--home .panel,
.most-public-page--platform .intro,
.most-public-page--password .shell {
  border-color: rgba(185, 199, 217, 0.82);
  border-radius: var(--most-radius-lg);
  box-shadow: var(--most-shadow-md);
}

.most-public-page--home .hero {
  isolation: isolate;
}

.most-public-page--home .hero::after {
  position: absolute;
  z-index: -1;
  inset: auto -5rem -6rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(216, 229, 244, 0.5);
  content: "";
  pointer-events: none;
}

.most-public-page--home .feature {
  border-color: var(--most-line);
  border-radius: var(--most-radius-md);
  box-shadow: 0 0 0 rgba(31, 58, 97, 0);
  transition:
    border-color var(--most-motion-fast) var(--most-ease),
    box-shadow var(--most-motion) var(--most-ease),
    transform var(--most-motion) var(--most-ease);
}

.most-public-page--home .feature:hover {
  border-color: #b7c7da;
  box-shadow: var(--most-shadow-sm);
  transform: translateY(-2px);
}

.most-public-page--home .button,
.most-public-page--password button,
.most-public-page--password .button-link {
  border-radius: 8px;
}

.most-public-page--home .button:hover,
.most-public-page--password button:hover,
.most-public-page--password .button-link:hover {
  box-shadow: 0 12px 26px rgba(47, 79, 122, 0.22);
  transform: translateY(-2px);
}

.most-public-page--home .button:active,
.most-public-page--password button:active,
.most-public-page--password .button-link:active {
  box-shadow: var(--most-shadow-sm);
  transform: translateY(0);
}

.most-public-page--home .contact a {
  position: relative;
  text-decoration: none;
}

.most-public-page--home .contact a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--most-motion) var(--most-ease);
}

.most-public-page--home .contact a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.most-public-page--platform .intro {
  border-color: rgba(185, 199, 217, 0.82);
}

.most-public-page--platform .tile {
  border-radius: var(--most-radius-md);
  box-shadow: var(--most-shadow-sm);
  transition:
    border-color var(--most-motion-fast) var(--most-ease),
    box-shadow var(--most-motion) var(--most-ease),
    transform var(--most-motion) var(--most-ease);
}

.most-public-page--platform a.tile:hover {
  box-shadow: var(--most-shadow-lg);
  transform: translateY(-5px);
}

.most-public-page--platform a.tile:active {
  box-shadow: var(--most-shadow-sm);
  transform: translateY(-1px);
}

.most-public-page--platform .tile--soon {
  box-shadow: 0 7px 20px rgba(31, 58, 97, 0.06);
}

.most-public-page--password .shell {
  width: min(100%, 640px);
  overflow: clip;
}

.most-public-page--password .head {
  background: linear-gradient(115deg, var(--most-brand-strong), var(--most-brand));
}

.most-public-page--password input[type="email"],
.most-public-page--password input[type="password"] {
  border-color: var(--most-line-strong);
}

.most-public-page--password input[type="email"]:hover,
.most-public-page--password input[type="password"]:hover {
  border-color: var(--most-brand);
}

.most-public-page--password input[type="email"]:focus,
.most-public-page--password input[type="password"]:focus {
  border-color: var(--most-brand);
  box-shadow: 0 0 0 4px rgba(47, 79, 122, 0.14);
}

@media (max-width: 640px) {
  .most-public-page--home .hero,
  .most-public-page--home .panel,
  .most-public-page--platform .intro,
  .most-public-page--platform .tile,
  .most-public-page--password .shell {
    border-radius: var(--most-radius-md);
  }

  .most-public-page--platform a.tile:hover,
  .most-public-page--home .feature:hover {
    transform: none;
  }
}

@media (max-width: 560px) {
  .most-public-page .topbar__inner {
    gap: 10px;
    padding-block: 12px;
  }

  .most-public-page .brand {
    gap: 10px;
  }

  .most-public-page .brand > div {
    min-width: 0;
  }

  .most-public-page .brand__mark {
    width: 76px;
    height: 54px;
  }

  .most-public-page .brand__caption {
    display: block;
    max-width: 190px;
    font-size: 15px;
    line-height: 1.25;
  }

  .most-public-page .topbar__link {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .most-public-page .most-brand-home:hover img,
  .most-public-page .most-brand-home:active img {
    transform: none;
  }
}
