/* Ecossistema — cartão digital multi-marca (100vh, sem scroll) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --text: #f4f4f5;
  --muted: rgba(244, 244, 245, 0.52);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-edge: rgba(255, 255, 255, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: clamp(0.875rem, 4vw, 1.5rem);
  --pad-y: max(0.5rem, env(safe-area-inset-top, 0px));
  --pad-b: max(0.5rem, env(safe-area-inset-bottom, 0px));
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 1rem;
  /* Hover / glow unificado em todos os cartões */
  --card-glow: rgba(45, 212, 191, 0.42);
  --card-glow-2: rgba(56, 189, 248, 0.24);
}

html {
  height: 100%;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
  background: #050810;
  -webkit-font-smoothing: antialiased;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 90% at 50% -25%, rgba(56, 189, 248, 0.05), transparent 66%),
    linear-gradient(168deg, #040508 0%, #061018 48%, #071a22 100%);
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(var(--ambient-parallax-x, 0px), var(--ambient-parallax-y, 0px), 0);
  will-change: transform;
}

.ambient__orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(150px);
  transform: translate3d(0, 0, 0) scale(1);
  will-change: transform;
  background: radial-gradient(circle at 48% 45%, rgba(56, 189, 248, 0.07), rgba(34, 211, 238, 0.05) 46%, rgba(74, 222, 128, 0.035) 74%, transparent 100%);
}

.ambient__orb--1 {
  width: min(60vw, 48rem);
  height: min(60vw, 48rem);
  left: -24vw;
  top: -24vh;
  opacity: 0.86;
  background: radial-gradient(circle at 44% 42%, rgba(56, 189, 248, 0.08), rgba(34, 211, 238, 0.055) 48%, rgba(74, 222, 128, 0.03) 74%, transparent 100%);
  animation: orbFloatA 56s ease-in-out infinite alternate;
}

.ambient__orb--2 {
  width: min(56vw, 44rem);
  height: min(56vw, 44rem);
  right: -24vw;
  top: 10vh;
  opacity: 0.78;
  background: radial-gradient(circle at 52% 46%, rgba(74, 222, 128, 0.072), rgba(45, 212, 191, 0.05) 48%, rgba(56, 189, 248, 0.03) 74%, transparent 100%);
  animation: orbFloatB 50s ease-in-out infinite alternate;
}

.ambient__orb--3 {
  width: min(52vw, 40rem);
  height: min(52vw, 40rem);
  left: 38vw;
  bottom: -30vh;
  opacity: 0.72;
  background: radial-gradient(circle at 50% 44%, rgba(34, 211, 238, 0.07), rgba(56, 189, 248, 0.05) 48%, rgba(110, 231, 183, 0.03) 74%, transparent 100%);
  animation: orbFloatC 60s ease-in-out infinite alternate;
}

@keyframes orbFloatA {
  0% {
    transform: translate3d(-1.2vw, -1vh, 0) scale(0.995);
  }
  50% {
    transform: translate3d(0.7vw, 0.6vh, 0) scale(1.005);
  }
  100% {
    transform: translate3d(1.8vw, 1.4vh, 0) scale(1.012);
  }
}

@keyframes orbFloatB {
  0% {
    transform: translate3d(1vw, -0.8vh, 0) scale(0.996);
  }
  50% {
    transform: translate3d(-0.8vw, 0.5vh, 0) scale(1.004);
  }
  100% {
    transform: translate3d(-1.6vw, 1.2vh, 0) scale(1.01);
  }
}

@keyframes orbFloatC {
  0% {
    transform: translate3d(-0.9vw, 0.9vh, 0) scale(0.996);
  }
  50% {
    transform: translate3d(0.8vw, -0.5vh, 0) scale(1.004);
  }
  100% {
    transform: translate3d(1.4vw, -1.2vh, 0) scale(1.01);
  }
}

@media (max-width: 768px) {
  .ambient__orb--2 {
    width: min(74vw, 30rem);
    height: min(74vw, 30rem);
    right: -24vw;
    top: 28vh;
    animation-duration: 50s;
  }

  .ambient__orb--3 {
    display: none;
  }
}

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  height: 100dvh;
  max-height: 100dvh;
  padding: calc(var(--pad-y) + 0.35rem) var(--pad-x) calc(var(--pad-b) + 0.5rem);
  overflow: hidden;
}

/* Três colunas (desktop): 3 botões | marca | 3 botões — mobile: logo, depois colunas em stack */
.split {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2.5vh, 1.15rem);
  width: 100%;
  max-width: min(100%, 30rem);
  margin: 0 auto;
  flex: 1;
  min-height: 0;
}

.split__brand {
  order: 1;
  flex: none;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.split__hub--left {
  order: 2;
}

.split__hub--right {
  order: 3;
}

.split__hub--left,
.split__hub--right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 0.25rem 0;
}

.split__hub--left .brands,
.split__hub--right .brands {
  width: 100%;
  max-width: min(100%, 30rem);
}

/* Header — hierarquia clara, compacto */
.head {
  text-align: center;
  width: 100%;
}

.head.split__brand {
  flex-shrink: 0;
}

/* Logo superior: largura controlada, altura máxima no <img> para mostrar a imagem completa (sem recorte) */
.head__mark {
  position: relative;
  width: min(100%, 19rem);
  margin: 0 auto 0.4rem;
  isolation: isolate;
}

.head__mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 135%;
  height: 190%;
  transform: translate(-50%, -52%);
  border-radius: 999px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 48% at 50% 52%, rgba(52, 255, 171, 0.3), rgba(52, 255, 171, 0.07) 58%, transparent 74%),
    radial-gradient(ellipse 72% 60% at 50% 50%, rgba(45, 212, 191, 0.23), transparent 68%);
  filter: blur(20px);
}

.head__logo-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(3.25rem, 10.5vw, 4.75rem);
  object-fit: contain;
  object-position: center top;
}

@media (min-width: 769px) {
  /* Logomarca ~3× maior no desktop (coluna central) */
  .split__brand {
    max-width: 36rem;
  }

  .split__brand .head__mark {
    width: min(100%, 34rem);
    margin-bottom: 0.8rem;
  }

  .split__brand .head__mark::before {
    width: 124%;
    height: 176%;
    transform: translate(-50%, -50%);
    filter: blur(28px);
  }

  .split__brand .head__logo-img {
    max-height: clamp(6.75rem, 20vh, 9.5rem);
  }

  .split__brand .head__sub {
    max-width: min(100%, 34rem);
    font-size: clamp(0.82rem, 1.75vw, 0.94rem);
    line-height: 1.45;
  }
}

.head__sub {
  margin: 0.5rem 0 0;
  max-width: min(100%, 19rem);
  margin-inline: auto;
  font-size: clamp(0.75rem, 2.3vw, 0.875rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Grid de marcas */
.brands {
  display: flex;
  flex-direction: column;
  gap: clamp(0.22rem, 0.85vh, 0.45rem);
  min-height: 0;
}

.brand-card {
  --card-shift-x: 0px;
  --card-shift-y: 0px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: clamp(0.32rem, 1.15vw, 0.52rem) clamp(0.6rem, 2.2vw, 0.9rem);
  text-decoration: none;
  color: var(--text);
  cursor: default;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: visible;
  transform: translate(var(--card-shift-x), var(--card-shift-y));
}

.brand-card[href] {
  cursor: pointer;
}

.brand-card,
.brand-card * {
  user-select: none;
  -webkit-user-select: none;
}

.brand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
  background: radial-gradient(120% 100% at 35% 25%, rgba(45, 212, 191, 0.11), transparent 52%),
    radial-gradient(100% 90% at 100% 65%, rgba(56, 189, 248, 0.1), transparent 55%);
}

.brand-card:hover {
  transform: translate(var(--card-shift-x), var(--card-shift-y)) scale(1.02);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(45, 212, 191, 0.48);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 56px var(--card-glow),
    0 0 88px var(--card-glow-2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.brand-card:hover::before {
  opacity: 1;
}

.brand-card:active {
  transform: translate(var(--card-shift-x), var(--card-shift-y)) scale(0.99);
}

@media (prefers-reduced-motion: reduce) {
  .brand-card:hover,
  .brand-card:active {
    transform: none;
  }
}

.brand-card__logo {
  flex-shrink: 0;
  width: clamp(2.5rem, 11vw, 3rem);
  height: clamp(2.5rem, 11vw, 3rem);
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.brand-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-card__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.brand-card__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-card__name {
  font-size: clamp(0.9375rem, 3.5vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-card__desc {
  display: none;
}

.brand-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #5eead4, #38bdf8);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.55), 0 0 8px rgba(56, 189, 248, 0.35);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.brand-card:hover .brand-card__dot {
  background: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.85), 0 0 10px rgba(255, 255, 255, 0.55);
  transform: scale(1.12);
}

.brand-tooltip {
  position: fixed;
  z-index: 40;
  left: -9999px;
  top: -9999px;
  width: clamp(16.25rem, 22vw, 20rem);
  max-width: min(20rem, calc(100vw - 1.25rem));
  padding: 0.78rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 20, 30, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.38),
    0 0 18px rgba(56, 189, 248, 0.08);
  color: #ffffff;
  font-size: 0.84rem;
  line-height: 1.5;
  letter-spacing: 0.004em;
  opacity: 0;
  visibility: hidden;
  transform: none;
  will-change: left, top;
  /* Posição via JS (micro-follow); só fade do estado */
  transition: opacity 0.14s ease, visibility 0.14s ease;
  pointer-events: none;
  user-select: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  white-space: normal;
}

.brand-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.brand-card--origin .brand-card__logo {
  background: rgba(255, 255, 255, 0.96);
  padding: 0.18rem;
}

.brand-card--goflow .brand-card__logo {
  background: rgba(255, 255, 255, 0.96);
  padding: 0.18rem;
}

.brand-card--nexus-suite .brand-card__logo img,
.brand-card--nexus-talent .brand-card__logo img {
  transform: scale(2.2);
  transform-origin: center;
}

.brand-card--origin .brand-card__logo img {
  transform: scale(1.55);
  transform-origin: center;
}

.brand-card--uc .brand-card__logo img {
  transform: scale(1.2);
  transform-origin: center;
}

/* Footer */
.foot {
  flex-shrink: 0;
  padding-top: 0.35rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.foot__copy {
  margin: 0;
  font-size: clamp(0.625rem, 2.1vw, 0.6875rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(244, 244, 245, 0.45);
}

@media (max-width: 768px) {
  .shell {
    padding: calc(var(--pad-y) + 0.4rem) max(0.75rem, var(--pad-x)) calc(var(--pad-b) + 0.65rem);
  }

  .split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    justify-items: center;
    gap: 0.82rem;
    max-width: min(100%, 34rem);
    padding-top: 0;
    padding-bottom: 0;
  }

  .split__brand {
    order: -1;
    grid-column: 1 / -1;
    grid-row: 1;
    margin-top: -144px !important;
    margin-bottom: 0.82rem !important;
    /* Sobe só marca + subtítulo sem mover os botões no grid (transform não altera layout) */
    transform: translateY(-32px) !important;
  }

  .split__brand .head__mark {
    width: min(100%, 21rem);
  }

  .split__brand .head__logo-img {
    max-height: clamp(4rem, 13.5vw, 5.4rem);
  }

  .split__brand .head__sub {
    font-size: clamp(0.67rem, 2.6vw, 0.74rem);
    line-height: 1.35;
    margin-top: 0.5rem !important;
    transform: none !important;
  }

  .split__hub--left,
  .split__hub--right,
  .split__hub--left .brands,
  .split__hub--right .brands {
    display: contents;
  }

  /* Espaço extra só entre marca/subtítulo e a 1.ª fila de botões (não altera gap entre botões) */
  .split > a.brand-card:nth-child(1),
  .split > a.brand-card:nth-child(2) {
    margin-top: clamp(0.85rem, 3.2vw, 1.35rem);
  }

  .brand-card {
    --card-shift-y: 18px;
    width: 100%;
    min-height: 3.35rem;
    padding: 0.58rem 0.74rem;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
      0 8px 22px rgba(0, 0, 0, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .brand-card:active {
    transform: translate(var(--card-shift-x), var(--card-shift-y)) scale(0.985);
    transition-duration: 0.14s;
  }

  .brand-card:hover {
    transform: none;
    background: var(--glass);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
      0 8px 22px rgba(0, 0, 0, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .brand-card:hover::before {
    opacity: 0;
  }

  .brand-card.is-expanded {
    border-color: rgba(94, 234, 212, 0.52);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
      0 10px 26px rgba(0, 0, 0, 0.28),
      0 0 20px rgba(45, 212, 191, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .brand-card__desc {
    display: none;
  }

  .brand-card.is-expanded .brand-card__name {
    opacity: 1;
    color: #ffffff;
  }

  .brand-mobile-info {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(var(--pad-b) + 0.55rem);
    z-index: 55;
    padding: 0.7rem 0.85rem;
    border-radius: 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 20, 30, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
      0 10px 24px rgba(0, 0, 0, 0.34),
      0 0 14px rgba(45, 212, 191, 0.08);
    color: #eaeaea;
    font-size: 0.74rem;
    line-height: 1.42;
    letter-spacing: 0.003em;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
  }

  .brand-mobile-info.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-tooltip {
    transition: opacity 0.01s linear, visibility 0.01s linear;
    transform: none;
  }
}

@media (min-height: 700px) {
  .head__mark {
    margin-bottom: 0.5rem;
  }

  .brands {
    gap: 0.5rem;
  }
}

@media (min-width: 769px) {
  .split {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(1.2rem, 3vw, 2.6rem);
    max-width: min(100%, 96rem);
  }

  .split__hub--left {
    order: 1;
    flex: 1 1 0;
    justify-content: flex-end;
    padding-right: 0;
  }

  .split__brand {
    order: 2;
    flex: 0 0 auto;
    width: auto;
    max-width: 36rem;
  }

  .split__hub--right {
    order: 3;
    flex: 1 1 0;
    justify-content: flex-start;
    padding-left: 0;
  }

  .split__hub--left .brands,
  .split__hub--right .brands {
    max-width: min(100%, 17.5rem);
  }

  .split__hub--left .brand-card:nth-child(1) {
    --card-shift-x: 0.8rem;
    --card-shift-y: -0.95rem;
  }

  .split__hub--left .brand-card:nth-child(2) {
    --card-shift-x: 0rem;
    --card-shift-y: 0rem;
  }

  .split__hub--left .brand-card:nth-child(3) {
    --card-shift-x: 1rem;
    --card-shift-y: 0.95rem;
  }

  .split__hub--right .brand-card:nth-child(1) {
    --card-shift-x: -1rem;
    --card-shift-y: -0.95rem;
  }

  .split__hub--right .brand-card:nth-child(2) {
    --card-shift-x: 0rem;
    --card-shift-y: 0rem;
  }

  .split__hub--right .brand-card:nth-child(3) {
    --card-shift-x: -0.8rem;
    --card-shift-y: 0.95rem;
  }
}

/* —— Seletor de idiomas (estilo SaaS / modelo Nexus) —— */
.lang-switch {
  position: fixed;
  z-index: 60;
  top: calc(max(0.65rem, env(safe-area-inset-top, 0px)) + 0.35rem);
  right: max(0.65rem, env(safe-area-inset-right, 0px));
  font-family: var(--font);
}

.lang-switch__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  margin: 0;
  padding: 0.38rem 0.62rem 0.38rem 0.48rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 4px 14px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  color: #64748b;
  transition:
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease),
    border-color 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.lang-switch__trigger:hover {
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.08),
    0 8px 22px rgba(15, 23, 42, 0.08);
}

.lang-switch.is-open .lang-switch__trigger {
  border-color: rgba(15, 23, 42, 0.14);
}

.lang-switch__trigger:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.65);
  outline-offset: 2px;
}

.lang-switch__flag--trigger {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.lang-switch__flag--trigger img,
.lang-switch__flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 50%;
}

/* Brasil: PNG com mais margem — zoom para igualar às outras bandeiras */
.lang-switch__flag img[src*="pt-br"],
.lang-switch__flag--trigger img[src*="pt-br"] {
  transform: scale(1.24);
  transform-origin: center center;
}

.lang-switch__chevron {
  flex-shrink: 0;
  transition: transform 0.22s var(--ease);
}

.lang-switch.is-open .lang-switch__chevron {
  transform: rotate(180deg);
}

.lang-switch__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: min(17.5rem, calc(100vw - 2rem));
  padding: 0.62rem 0.45rem 0.55rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow:
    0 12px 36px rgba(15, 23, 42, 0.14),
    0 4px 12px rgba(15, 23, 42, 0.06);
}

.lang-switch__heading {
  margin: 0 0 0.42rem 0.45rem;
  padding: 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.lang-switch__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-switch__option {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  width: 100%;
  margin: 0;
  padding: 0.58rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: #18181b;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.lang-switch__option:hover {
  background: rgba(244, 244, 245, 0.95);
}

.lang-switch__option.is-active {
  background: #f4f4f5;
  border-color: rgba(15, 23, 42, 0.08);
}

.lang-switch__option:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 0;
}

.lang-switch__flag {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.lang-switch__text {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .lang-switch {
    top: calc(max(0.45rem, env(safe-area-inset-top, 0px)) + 0.2rem);
    right: max(0.5rem, env(safe-area-inset-right, 0px));
  }

  .lang-switch__trigger {
    padding: 0.32rem 0.52rem 0.32rem 0.42rem;
  }

  .lang-switch__panel {
    min-width: min(16.25rem, calc(100vw - 1.25rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch__trigger,
  .lang-switch__chevron,
  .lang-switch__option {
    transition-duration: 0.01s;
  }
}
