@font-face {
  font-family: "WhatsApp Sans Var";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/WhatsAppSans.woff2") format("woff2");
}

:root {
  --green: #25d366;
  --green-line: #00db40;
  --ink: #111b21;
  --muted: #667781;
  --header: #111b21;
  --footer: #111b21;
  --line: rgba(255, 255, 255, 0.16);
  --font: "WhatsApp Sans Var", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  line-height: 16.08px;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo img {
  display: block;
  width: 131px;
  height: 30px;
}

.logo--footer img {
  width: 160px;
  height: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 78px;
  padding: 0 60px;
  background: #fff;
  color: var(--header);
}

.header.is-scrolled {
  box-shadow: 0 1px 0 #858585;
}

.nav-toggle,
.lang-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.nav-toggle__button {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--header);
  cursor: pointer;
}

.nav-toggle__icon {
  overflow: visible;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.nav-toggle__icon path {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 220ms ease;
}

.nav-toggle:checked + .nav-toggle__button path:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle:checked + .nav-toggle__button path:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle__icon path {
    transition: none;
  }
}

.logo {
  justify-self: start;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(22px, 3vw, 40px);
}

.nav__link,
.menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--header);
  font-size: 16px;
  font-weight: 500;
  line-height: 19.2px;
}

.nav .menu__trigger {
  gap: 8px;
  font-weight: 400;
}

.nav .nav__link:has(.external) {
  gap: 16px;
}

.nav .external path {
  stroke: currentColor;
  stroke-width: 0.5;
  stroke-linejoin: round;
}

.external {
  width: 12px;
  height: 12px;
}

.chevron {
  width: 12px;
  height: 8px;
}

.chevron--right {
  width: 8px;
  height: 12px;
}

.menu {
  position: relative;
}

.menu__panel {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  z-index: 5;
  min-width: 220px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(17, 27, 33, 0.16);
}

.menu__panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--header);
  font-size: 16px;
  font-weight: 500;
  line-height: 19.2px;
}

.menu__panel a:hover,
.menu__panel a:focus-visible {
  background: #f0f2f5;
}

.menu:hover .menu__panel,
.menu:focus-within .menu__panel {
  display: block;
}

.drawer {
  display: none;
}

.header__actions {
  display: flex;
  align-items: flex-start;
  justify-self: end;
  gap: 16px;
  margin-top: 1px;
}

.login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 116px;
  white-space: nowrap;
  min-height: 46px;
  padding: 14px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
}

.download-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 145px;
  min-height: 45px;
  border: 1px solid var(--ink);
  border-radius: 50px;
  background: var(--green);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.download-fab__mobile {
  display: none;
}

.download-fab svg {
  width: 14px;
  height: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
}

.btn--solid {
  background: var(--green);
  color: var(--ink);
}

.btn__icon {
  width: 16px;
  height: 16px;
}

.btn:hover,
.btn:focus-visible,
.login:hover,
.login:focus-visible,
.download-fab:hover,
.download-fab:focus-visible {
  filter: brightness(0.97);
}

.invite {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 818px;
  padding: 90px 16px 50px;
  text-align: center;
}

.invite__avatar {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  object-fit: cover;
}

.invite__name,
.invite__lead {
  margin: 0;
  max-width: 100%;
  font-weight: 400;
}

.invite__name {
  margin-top: 36px;
  font-size: 24px;
  line-height: 34px;
}

.invite__lead {
  margin-bottom: 32px;
  font-size: 18px;
  line-height: 26px;
}

.invite__join {
  width: min(258px, 100%);
  min-height: 50px;
  padding: 16px 12px;
  border: 1px solid var(--ink);
  border-radius: 50px;
}

.invite__join + .invite__join {
  margin-top: 12px;
}

.invite__note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 0;
  font-size: 18px;
  line-height: 26px;
}

.invite__app-icon {
  flex: none;
  margin-right: 2px;
}

.invite__note a {
  color: #000;
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #00d448;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.footer {
  background: var(--footer);
  color: #fff;
}

.footer__inner {
  width: min(1050px, calc(100% - 64px));
  margin: 0 auto;
  padding: 96px 0 38px;
}

.footer__top {
  display: grid;
  grid-template-columns: 262.5px repeat(4, minmax(0, 1fr));
  gap: 32px 0;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 105px;
}

.footer__hamta {
  min-height: 53px;
  min-width: 172px;
  padding: 12px 28px;
  gap: 14px;
}

.footer h2 {
  margin: 0 0 34px;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.footer__top section li {
  position: relative;
}

.footer__top section li::before {
  position: absolute;
  top: 0.7em;
  left: -16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1c2226;
  content: "";
}

.footer__top li + li {
  margin-top: 18px;
}

.footer__top a {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
  hyphens: manual;
}

.footer__top .footer__hamta {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
}

.footer__bottom {
  display: grid;
  grid-template-columns: 15.5% 12.9% 14.3% auto 1fr;
  align-items: center;
  margin-top: 112px;
  padding-top: 33px;
  border-top: 1px solid var(--line);
  color: #fff;
  font-size: 12px;
  line-height: 15px;
}

.footer__legal {
  display: contents;
}

.copyright {
  max-width: 110px;
  margin: 0;
}

.legal-terms {
  max-width: 100px;
}

.socials {
  display: flex;
  gap: 24px;
  order: 1;
}

.socials a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #1c1e21;
}

.socials svg {
  width: 16px;
  height: 16px;
}

.socials a[aria-label="YouTube"] svg {
  height: 11px;
}

.socials a[aria-label="Facebook"] svg {
  width: 8px;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  order: 2;
  justify-self: center;
  color: #fff;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
}

.lang-button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.lang-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  visibility: hidden;
  opacity: 0;
  transition: opacity 330ms cubic-bezier(.2, 0, 0, 1), visibility 0s linear 330ms;
}

.lang-toggle:checked ~ .lang-sheet {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.lang-toggle:checked + .lang-button::after {
  transform: translateY(2px) rotate(225deg);
}

.lang-backdrop {
  position: absolute;
  inset: 0;
}

.lang-card {
  position: absolute;
  bottom: min(80px, 10vh);
  left: 50%;
  display: flex;
  flex-direction: column;
  width: min(760px, calc(100% - 32px));
  height: min(600px, 86dvh);
  box-sizing: border-box;
  padding: 68px 32px 32px;
  border-radius: 24px;
  background: white;
  color: #1c1e21;
  box-shadow: 0 8px 32px rgb(0 0 0 / 18%);
  transform: translate(-50%, 8px) scale(.98);
  transition: transform 330ms cubic-bezier(.2, 0, 0, 1);
}

.lang-toggle:checked ~ .lang-sheet .lang-card {
  transform: translate(-50%, 0);
}

.lang-card :is(h2, .lang-filter, .lang__panel, .lang__panel a) {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 330ms cubic-bezier(.2, 0, 0, 1),
              transform 670ms cubic-bezier(.2, 0, 0, 1);
}

.lang-toggle:checked ~ .lang-sheet :is(h2, .lang-filter, .lang__panel, .lang__panel a) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 120ms;
}

.lang-close {
  position: absolute;
  top: 20px;
  right: 28px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font: 300 28px/1 var(--font);
  cursor: pointer;
}

.lang-card h2 {
  margin: 0 0 22px;
  font-size: 24px;
  line-height: 30px;
}

.lang-filter {
  appearance: none;
  align-self: start;
  flex-shrink: 0;
  width: 260px;
  max-width: 100%;
  height: 56px;
  padding: 0 40px 0 16px;
  border: 0;
  border-radius: 6px;
  color: #1c1e21;
  background: #f0f2f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%231c1e21' d='M0 0h10L5 6z'/%3E%3C/svg%3E") right 16px center / 10px 6px no-repeat;
  font: 400 16px var(--font);
  cursor: pointer;
}

.lang__panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  column-gap: 24px;
  flex: 1;
  min-height: 0;
  margin-top: 20px;
  overflow-y: scroll;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.lang__panel::-webkit-scrollbar { width: 14px; }
.lang__panel::-webkit-scrollbar-track { background: #fafafa; }
.lang__panel::-webkit-scrollbar-thumb {
  border: 3px solid #fafafa;
  border-radius: 10px;
  background: #c6c6c6;
}

.lang__panel a {
  padding: 24px 8px 28px;
  color: var(--ink);
  font-size: 18px;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.lang__panel a[aria-current="true"] { font-weight: 700; }
.lang__panel a:hover { text-decoration: underline; }
.lang__panel a[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .lang-sheet, .lang-card, .lang-card :is(h2, .lang-filter, .lang__panel, .lang__panel a) { transition: none; }
}

a:focus-visible,
.nav-toggle:focus-visible + .nav-toggle__button,
.lang-toggle:focus-visible + .lang-button {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .header {
    height: auto;
    min-height: 78px;
    grid-template-columns: auto 1fr auto;
    padding: 8px 24px;
    background: #fff;
  }

  .nav-toggle__button {
    display: flex;
    width: 32px;
    justify-self: start;
  }

  .header .logo {
    justify-self: center;
  }

  .logo--footer {
    justify-self: start;
  }

  .nav {
    display: none;
  }

  .login {
    display: none;
  }

  .download-fab {
    width: clamp(100px, calc(100vw - 268px), 164px);
    min-height: 53px;
  }

  .download-fab__desktop {
    display: none;
  }

  .download-fab__mobile {
    display: inline;
  }

  .header:has(.nav-toggle:checked) {
    position: relative;
    grid-template-rows: 56px auto;
    padding-block: 0;
  }

  .header:has(.nav-toggle:checked) > :is(.nav-toggle__button, .logo, .header__actions) {
    transform: translateY(9px);
  }

  .nav-toggle:checked ~ .drawer {
    display: flex;
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    margin-inline: -24px;
    padding-inline: 24px clamp(24px, 10vw, 44px);
    border-top: 1px solid #bdcbd0;
    background: #fff;
  }

  .drawer a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 93px;
    border-bottom: 1px solid #bdcbd0;
    color: #103b2d;
    font-size: 28px;
    line-height: 34px;
  }

  .drawer a:first-child {
    color: var(--ink);
  }

  .drawer a:last-child {
    border-bottom: 0;
  }

  .drawer a:has(svg) {
    min-height: 96px;
  }

  .drawer a:has(.drawer__arrow) {
    font-weight: 500;
  }

  .drawer svg {
    flex: none;
    margin-right: 18px;
    color: var(--green);
  }

  .drawer .drawer__arrow {
    margin-right: 7px;
  }

  .drawer__arrow path {
    stroke-width: 2.25;
  }

  .drawer .external path {
    stroke: currentColor;
    stroke-width: 0.45;
    stroke-linejoin: round;
  }

  body:has(.nav-toggle:checked) .invite {
    display: none;
  }

  body:has(.nav-toggle:checked) .footer__inner {
    padding-top: 0;
  }

  body:has(.nav-toggle:checked) .footer__hamta {
    width: min(274px, 100%);
    min-height: 48px;
    margin-bottom: 0;
  }

  body:has(.nav-toggle:checked) :is(.logo--footer, .footer__top > section, .legal-map, .copyright) {
    display: none;
  }

  body:has(.nav-toggle:checked) .footer__legal {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 15px;
    padding: 16px 24px 8px;
    border-top: 0;
  }

  body:has(.nav-toggle:checked) .lang-button {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    justify-content: space-between;
    width: min(221px, 100%);
    min-height: 57px;
    padding-inline: 27px;
    border: 2px solid #fff;
    border-radius: 50px;
    font-weight: 700;
    text-transform: capitalize;
  }

  .footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    padding: 16px 24px 0;
    column-gap: 24px;
    row-gap: 0;
  }

  .footer__top,
  .footer__brand,
  .footer__bottom {
    display: contents;
  }

  .footer__legal {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    order: 5;
    margin: 0 -24px;
    padding: 35px 52px 35px 24px;
    border-top: 1px solid var(--line);
  }

  .footer__hamta {
    order: 1;
    grid-column: 1 / -1;
    justify-self: center;
    width: min(172px, 100%);
    min-height: 53px;
    margin: 0 0 16px;
    padding: 10px 22px;
    font-size: 16px;
    font-weight: 500;
  }

  .socials {
    order: 2;
    grid-column: 1 / -1;
    justify-content: center;
    gap: clamp(0px, calc((100% - 240px) / 4), 24px);
    width: auto;
    margin: 0 -24px;
    padding: 16px 12px 15px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .logo--footer {
    order: 3;
    grid-column: 1 / -1;
    margin: 32px 0 36px;
  }

  .logo--footer img {
    width: 125px;
    height: auto;
  }

  .footer__top > section {
    order: 4;
    margin-bottom: 49px;
  }

  .footer h2 {
    margin-bottom: 22px;
  }

  .footer__top section a {
    font-size: 16px;
    line-height: 22px;
  }

  .footer__top li + li {
    margin-top: 16px;
  }

  .legal-map,
  .legal-terms,
  .copyright {
    grid-column: 1;
    max-width: none;
    color: #fff;
    font-size: 12px;
    line-height: 15px;
  }

  .legal-map {
    order: 1;
  }

  .legal-terms {
    order: 2;
  }

  .copyright {
    order: 3;
    max-width: none;
  }

  .lang-button {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    justify-self: end;
    order: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
  }
}

@media (max-width: 640px) {
  .invite {
    min-height: 556px;
    padding-top: 55px;
  }

  .invite__name {
    margin-top: 20px;
    font-size: 19px;
    line-height: 26px;
  }

  .invite__lead {
    margin-bottom: 16px;
    font-size: 16px;
  }

  .invite__note {
    gap: 4px;
    margin-top: 18px;
    font-size: 16px;
  }

  .lang-card {
    bottom: 0;
    width: 100%;
    height: min(600px, 88dvh);
    padding: 56px 20px 20px;
    border-radius: 24px 24px 0 0;
  }

  .lang__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }
}

@media (max-width: 420px) {
  .footer__top section a {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .header {
    padding-inline: 14px;
  }

  .download-fab {
    gap: 5px;
    font-size: 14px;
  }
}

@media (max-width: 340px) {
  .header .logo img {
    width: 112px;
    height: auto;
  }
}
