/* Compact language menu, conversion benefits and precise handoff alignment. */
.language-switch {
  position: relative;
  z-index: 60;
  width: 44px;
  height: 38px;
  flex: 0 0 auto;
}

.language-switch__trigger {
  display: inline-flex;
  width: 44px;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.04em;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.language-switch__trigger svg {
  transition: transform 180ms ease;
}

.language-switch:hover .language-switch__trigger,
.language-switch--open .language-switch__trigger {
  border-color: var(--green-bright);
  color: var(--ink);
  background: var(--paper-deep);
}

.language-switch--open .language-switch__trigger svg {
  transform: rotate(180deg);
}

.language-switch__menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: 142px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  visibility: hidden;
  opacity: 0;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(20, 24, 30, 0.14);
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.language-switch--open .language-switch__menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .language-switch:hover .language-switch__menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.language-switch__option {
  display: grid;
  width: 100%;
  min-height: 34px;
  grid-template-columns: 31px 1fr 13px;
  gap: 6px;
  align-items: center;
  padding: 6px 7px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.language-switch__option > span {
  color: var(--ink);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.language-switch__option > small {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-switch__option > svg {
  color: var(--green-bright);
}

.language-switch__option:hover,
.language-switch__option:focus-visible {
  color: var(--ink);
  background: var(--paper-deep);
}

.language-switch__option[aria-checked='true'] {
  background: var(--paper-deep);
}

.language-switch button:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
}

.header-actions {
  gap: 10px;
}

.hero-bottomline {
  gap: 24px;
}

.hero-benefits {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
}

.hero-benefits > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-benefits svg {
  flex: 0 0 auto;
  color: var(--green-bright);
}

.handoff-button {
  position: relative;
  padding: 0 48px;
}

.handoff-button__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.handoff-button svg.handoff-button__arrow {
  position: absolute;
  top: 50%;
  right: 16px;
  margin: 0;
  transform: translateY(-50%);
}

html[data-theme='dark'] .language-switch__trigger,
html[data-theme='dark'] .language-switch__menu {
  background: var(--white);
}

@media (max-width: 1100px) {
  .hero-benefits {
    gap: 8px 12px;
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  .header-actions {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    gap: 6px;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 6px;
    margin-right: 6px;
  }

  .language-switch,
  .language-switch__trigger {
    width: 44px;
    height: 44px;
  }

  .language-switch__menu {
    width: 150px;
  }

  .language-switch__option {
    min-height: 40px;
  }

  .hero-bottomline {
    gap: 16px;
  }

  .hero-benefits {
    display: grid;
    justify-content: start;
    gap: 9px;
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .brand {
    gap: 7px;
  }

  .brand__word {
    font-size: 22px;
  }

  .header-actions {
    gap: 5px;
    margin-right: 5px;
  }

  .theme-toggle,
  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .language-switch,
  .language-switch__trigger {
    width: 40px;
    height: 40px;
  }
}
