:root {
  --green: #25d366;
  --green-dark: #1ebe5d;
  --ink: #111b21;
  --footer: #111b21;
  --muted: #667781;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #ffffff;
  display: grid;
  grid-template-rows: auto minmax(440px, 1fr) auto;
  overflow-x: hidden;
}

.wa-header {
  height: 82px;
  padding: 0 42px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  background: #ffffff;
}

.wa-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 1.3rem;
  font-weight: 800;
  user-select: none;
}

.wa-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  line-height: 1;
}

.wa-nav {
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: clamp(22px, 3vw, 38px);
  align-items: center;
  font-size: 1rem;
  overflow: hidden;
}

.wa-nav span,
.footer-col span,
.footer-col small {
  cursor: default;
  user-select: none;
  white-space: nowrap;
}

.download-pill,
.footer-download {
  width: 170px;
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid #111b21;
  background: var(--green);
  color: #111b21;
  padding: 0 28px;
  font: inherit;
  font-weight: 500;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  cursor: default;
  justify-self: end;
}

.wa-main {
  display: grid;
  place-items: start center;
  padding-top: 72px;
}

.open-panel {
  width: min(520px, calc(100% - 32px));
  display: grid;
  justify-items: center;
  gap: 32px;
  text-align: center;
}

.open-panel p {
  margin: 0 0 20px;
  font-size: 1.16rem;
  line-height: 1.5;
  color: var(--ink);
}

.open-panel small {
  max-width: 420px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.open-app {
  width: min(270px, 100%);
  min-height: 52px;
  border: 1px solid #111b21;
  border-radius: 999px;
  background: var(--green);
  color: #111b21;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.open-app:hover {
  background: var(--green-dark);
}

.wa-footer {
  min-height: 300px;
  background: var(--footer);
  color: #ffffff;
  display: grid;
  grid-template-columns: 220px repeat(3, minmax(130px, 1fr));
  gap: 36px;
  padding: 92px clamp(40px, 8vw, 245px) 42px;
}

.footer-brand {
  display: grid;
  gap: 84px;
  align-content: start;
}

.footer-logo {
  color: #ffffff;
  font-size: 1.65rem;
}

.footer-logo .wa-icon {
  width: 44px;
  height: 44px;
}

.footer-download {
  width: 178px;
  min-height: 52px;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 24px;
}

.footer-col small {
  color: #cfd7dc;
  font-size: 0.72rem;
  font-weight: 700;
}

.footer-col span {
  color: #ffffff;
  font-size: 1.22rem;
  line-height: 1.15;
}

@media (max-width: 980px) {
  .wa-header {
    height: auto;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 18px 20px;
  }

  .wa-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 26px;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .wa-nav::-webkit-scrollbar {
    display: none;
  }

  .wa-main {
    min-height: 380px;
    padding-top: 54px;
  }

  .wa-footer {
    grid-template-columns: 1fr 1fr;
    padding: 48px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  body {
    grid-template-rows: auto minmax(390px, auto) auto;
  }

  .wa-header {
    grid-template-columns: 1fr auto;
    padding: 18px 20px 10px;
    align-items: center;
    gap: 14px;
  }

  .wa-logo {
    font-size: 1.22rem;
  }

  .wa-icon {
    width: 32px;
    height: 32px;
  }

  .wa-nav {
    width: 100%;
    font-size: 0.92rem;
    gap: 18px;
    padding: 8px 0 2px;
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }

  .wa-nav span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    line-height: 1;
  }

  .download-pill {
    width: 118px;
    min-height: 42px;
    padding: 0 13px;
    gap: 8px;
    font-size: 0.92rem;
  }

  .wa-main {
    padding: 74px 20px 72px;
    place-items: start center;
  }

  .open-panel {
    width: 100%;
    gap: 0;
  }

  .open-panel p {
    max-width: 320px;
    margin-bottom: 24px;
    font-size: 1.02rem;
    line-height: 1.45;
  }

  .open-panel small {
    max-width: 318px;
    margin-top: 14px;
    font-size: 0.8rem;
  }

  .open-app {
    width: min(318px, 100%);
    min-height: 56px;
    font-size: 1rem;
  }

  .wa-footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 28px 84px;
  }

  .footer-brand {
    gap: 28px;
  }

  .footer-logo {
    font-size: 1.85rem;
  }

  .footer-logo .wa-icon {
    width: 48px;
    height: 48px;
  }

  .footer-download {
    width: min(260px, 100%);
    min-height: 54px;
    justify-self: start;
  }

  .footer-col {
    gap: 14px;
  }

  .footer-col span {
    font-size: 1rem;
  }
}

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

  .wa-logo {
    font-size: 1.08rem;
  }

  .download-pill {
    width: 106px;
    padding-inline: 10px;
  }

  .wa-nav {
    gap: 16px;
    font-size: 0.86rem;
  }

  .wa-main {
    padding-inline: 16px;
  }
}
