.nav {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1180px);
  min-height: 74px;
  margin: 0 auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 600;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue);
}
.demo-button {
  padding: 12px 23px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-weight: 700;
}
.demo-button:hover,
.demo-button:focus-visible {
  color: #fff;
  background: #1059c4;
}
.menu-toggle,
.menu-close {
  display: none;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-size: 28px;
}
footer {
  padding: 66px 0 28px;
}
.footer-wrap {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 26px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo {
  display: inline-block;
  padding: 6px 9px;
  background: #fff;
  border-radius: 6px;
}
.footer-logo img {
  display: block;
  width: auto;
  height: 34px;
}
.footer-brand p {
  max-width: 260px;
  margin-top: 12px;
}
.footer-brand strong {
  color: var(--blue);
}
footer h5 {
  margin-bottom: 13px;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
}
footer ul {
  padding: 0;
  list-style: none;
}
footer li + li {
  margin-top: 8px;
}
.footer-store {
  display: block;
  width: 190px;
  margin-bottom: 10px;
  padding: 10px 13px;
  background: #fff;
  border-radius: 12px;
  color: var(--navy);
  font-weight: 700;
}
.footer-store:hover,
.footer-store:focus-visible {
  color: var(--blue);
}
.app-downloads {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.store-menu {
  position: relative;
  width: 100%;
  max-width: 190px;
  color: var(--navy);
}
.store-menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 190px;
  padding: 9px 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.store-menu summary::-webkit-details-marker {
  display: none;
}
.store-menu summary svg {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  fill: currentColor;
}
.store-copy {
  display: flex;
  flex-direction: column;
  color: var(--navy);
  line-height: 1.05;
  white-space: nowrap;
}
.store-copy small {
  color: var(--slate);
  font-size: 9px;
  font-weight: 500;
}
.store-copy strong {
  margin-top: 3px;
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
}
.store-menu .chevron {
  width: 15px;
  height: 15px;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s;
}
.store-menu[open] .chevron,
.store-menu:hover .chevron {
  transform: rotate(180deg);
}
.store-options {
  display: none;
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: calc(100% + 7px);
  width: 210px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}
.store-options::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 8px;
}
.store-menu:hover .store-options,
.store-menu:focus-within .store-options,
.store-menu[open] .store-options {
  display: block;
}
.store-options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 11px;
  color: var(--navy);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.store-options a::after {
  content: "↗";
}
.store-options a:hover,
.store-options a:focus-visible {
  color: var(--blue);
  background: var(--blue-light);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
}
@media (max-width: 900px) {
  .nav-row {
    width: min(100% - 32px, 1180px);
  }
  .nav-links {
    position: fixed;
    z-index: 30;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(330px, 88vw);
    padding: 78px 30px 30px;
    background: #fff;
    box-shadow: -18px 0 50px rgba(9, 39, 70, 0.18);
    flex-direction: column;
    align-items: stretch;
    transform: translateX(105%);
    transition: transform 0.25s ease;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
  }
  .menu-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 24px;
  }
  .menu-toggle {
    display: block;
  }
  .header-demo {
    display: none;
  }
  .footer-wrap {
    width: min(100% - 32px, 1180px);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}
