body { background: var(--night); color: #fff; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }

.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(17, 17, 20, .8);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 64px;
}

.hdr .brand { margin-right: auto; }

.hdr-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.hdr-link:hover, .hdr-link[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .08); }
.hdr-link[aria-current="page"] { color: #fff; }
.hdr-link svg { width: 18px; height: 18px; flex: none; }
.hdr-link .chev { width: 12px; height: 12px; opacity: .6; transition: transform .25s var(--k); }
.hdr-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.hdr-cta {
  margin-left: 8px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 15px;
  color: #111;
  background: #fff;
  box-shadow: none;
}

.hdr-cta:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, .16); }
.hdr-cta svg { width: 17px; height: 17px; }

.lang { position: relative; }
.lang-code { display: none; }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 340px;
  max-height: min(70vh, 540px);
  overflow: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: 18px;
  background: #1C1C21;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 70px rgba(0, 0, 0, .6);
  transform-origin: top right;
  animation: menuIn .22s var(--k);
}

@keyframes menuIn { from { opacity: 0; transform: scale(.96) translateY(-4px); } }

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
}

.lang-menu a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.lang-menu a[aria-current="true"] { color: #fff; font-weight: 600; }
.lang-menu a[aria-current="true"]::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231CE8B5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
}

@media (max-width: 599px) {
  .hdr .brand-name { display: none; }
  .lang-name { display: none; }
  .lang-code { display: inline; }
  .hdr-cta { padding-inline: 14px; margin-left: 4px; }
  .hdr-cta svg { display: none; }
  .lang-menu {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 70px;
    width: auto;
    max-height: calc(100svh - 90px);
  }
}

.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 14px;
  padding: 0;
}

.store-badge img { width: auto; height: 64px; }

@media (max-width: 599px) {
  .store-badge img { height: 56px; }
}

.site-foot { max-width: 1240px; margin: 0 auto; }

.lang-menu[hidden] { display: none; }

:lang(de) .display, :lang(fr) .display, :lang(es) .display, :lang(pt-BR) .display { -webkit-hyphens: auto; hyphens: auto; }

:lang(ja) .display { letter-spacing: -.02em; line-height: 1.08; word-break: auto-phrase; line-break: strict; }
:lang(ja) .capword { letter-spacing: -.02em; }
:lang(ja) .lead, :lang(ja) .post-desc, :lang(ja) .faq p { line-height: 1.75; word-break: auto-phrase; }

:lang(hi) .display { letter-spacing: 0; line-height: 1.24; }
:lang(hi) .capword { letter-spacing: 0; }
:lang(hi) .lead, :lang(hi) .post-desc, :lang(hi) .faq p { line-height: 1.7; }
:lang(hi) .post-title { letter-spacing: 0; line-height: 1.25; }
:lang(ja) .post-title { letter-spacing: -.01em; line-height: 1.3; }
:lang(hi) .step, :lang(ja) .step { letter-spacing: .04em; }
:lang(hi) .outline-text { color: rgba(255, 255, 255, .5); text-shadow: none; }
:lang(hi) .pub-label, :lang(ja) .pub-label { letter-spacing: .04em; }
