/* ============================================================
   PLAS Academy — Comunidade Discord
   LP curta para captura de leads da comunidade gratuita.
   ============================================================ */

section {
  padding: 80px 0;
}

.community-hero {
  position: relative;
  z-index: 30;
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 72px 0;
}

.community-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 75% 36%, rgba(88, 101, 242, .18), transparent 62%),
    linear-gradient(120deg, rgba(13, 9, 0, .98), rgba(13, 9, 0, .82) 55%, rgba(13, 9, 0, .96));
  z-index: 0;
  pointer-events: none;
}

.community-hero > .container {
  position: relative;
  z-index: 1;
}

.community-hero__grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

.community-hero__copy {
  max-width: 660px;
}

.community-hero .plas-coord {
  display: inline-block;
  margin-bottom: 18px;
}

.community-hero h1 {
  max-width: 620px;
  font-size: var(--fs-hero);
  letter-spacing: 0;
}

.community-hero h1 span,
.plas-bio-name span {
  color: var(--plas-orange);
}

.community-hero__copy > p {
  max-width: 560px;
  margin-top: 18px;
  color: var(--plas-grey);
  font-weight: 300;
  line-height: 1.75;
}

.community-form {
  position: relative;
  z-index: 30;
  width: 100%;
  max-width: 620px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(236, 236, 236, .1);
  border-radius: 8px;
  background: var(--plas-card);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .38);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body #plas-whatsapp {
  z-index: 20;
}

.community-form__grid {
  display: grid;
  gap: 12px;
}

.community-field {
  display: grid;
  gap: 7px;
}

.community-field label {
  font-family: var(--font-title);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--plas-grey);
}

.community-field input,
.community-field select {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(236, 236, 236, .12);
  border-radius: 4px;
  background: rgba(13, 9, 0, .74);
  color: var(--plas-white);
  font: 300 15px var(--font-body);
  padding: 0 14px;
  outline: none;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}

.community-field select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FA4200' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.community-field select option {
  background: #161008;
  color: var(--plas-white);
}

.community-field input:focus,
.community-field select:focus {
  border-color: rgba(250, 66, 0, .8);
  box-shadow: 0 0 0 3px rgba(250, 66, 0, .14);
}

.community-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: 4px;
  background: var(--plas-orange);
  color: var(--plas-white);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), opacity .2s;
}

.community-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(250, 66, 0, .32);
}

.community-btn:disabled {
  cursor: wait;
  opacity: .68;
  transform: none;
  box-shadow: none;
}

.community-form__fine,
.community-form__error {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.community-form__fine {
  color: rgba(181, 181, 181, .78);
}

.community-form__error {
  color: #ffb199;
}

.discord-mock {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(96px, 140px) 1fr;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(236, 236, 236, .12);
  border-radius: 12px;
  background: #16171d;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .54);
}

.discord-mock::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 32%, rgba(250, 66, 0, .08));
  pointer-events: none;
}

.discord-mock__servers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  background: #101116;
}

.discord-mock__servers span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #2a2d37;
}

.discord-mock__servers span:first-child {
  background: var(--plas-orange);
  border-radius: 9px;
  box-shadow: 0 0 0 5px rgba(250, 66, 0, .14);
}

.discord-mock__channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 12px;
  border-right: 1px solid rgba(236, 236, 236, .06);
  background: #1f2129;
}

.discord-mock__channels strong {
  margin-bottom: 10px;
  font-family: var(--font-title);
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--plas-white);
}

.discord-mock__channels span {
  overflow: hidden;
  border-radius: 5px;
  padding: 7px 8px;
  color: #a5a8b4;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-mock__channels span::before {
  content: "# ";
  color: #737782;
}

.discord-mock__channels .is-active {
  background: rgba(236, 236, 236, .08);
  color: var(--plas-white);
}

.discord-mock__chat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background:
    radial-gradient(80% 60% at 95% 5%, rgba(88, 101, 242, .18), transparent 54%),
    #292b34;
}

.discord-mock__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(236, 236, 236, .08);
  color: var(--plas-white);
  font-family: var(--font-title);
  font-size: 12px;
  text-transform: uppercase;
}

.discord-mock__top small {
  color: #4ade80;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
}

.chat-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--plas-white);
  font-family: var(--font-title);
  font-size: 10px;
}

.avatar.a1 { background: #5865f2; }
.avatar.a2 { background: #22c55e; }
.avatar.a3 { background: var(--plas-orange); }

.chat-row p {
  margin: 0;
  color: #d7d9e1;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
}

.chat-row strong {
  display: block;
  color: var(--plas-white);
  font-weight: 700;
}

.typing-line {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(13, 9, 0, .36);
  padding: 8px 12px;
  color: #d7d9e1;
  font-size: 12px;
}

.typing-line span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--plas-orange);
  animation: typing-dot 1.2s infinite ease-in-out;
}

.typing-line span:nth-child(2) { animation-delay: .15s; }
.typing-line span:nth-child(3) { animation-delay: .3s; margin-right: 4px; }

@keyframes typing-dot {
  0%, 80%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.community-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.community-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--plas-orange);
}

.community-heading h2 {
  color: var(--plas-black);
  letter-spacing: 0;
}

.community-heading p {
  max-width: 560px;
  margin: 14px auto 0;
  color: #4a4137;
  font-weight: 300;
  line-height: 1.7;
}

.benefit-grid {
  display: grid;
  gap: 16px;
}

.benefit-card {
  min-height: 230px;
  border: 1px solid var(--plas-card-border);
  border-radius: 8px;
  background: var(--plas-card);
  padding: 24px;
  color: var(--plas-white);
}

.benefit-card span {
  display: inline-block;
  margin-bottom: 44px;
  font-family: var(--font-title);
  font-size: 12px;
  color: var(--plas-orange);
}

.benefit-card h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.benefit-card p {
  color: var(--plas-grey);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

.community-bio {
  border-top: 0;
}

.thanks-hero {
  display: grid;
  min-height: calc(100vh - 64px);
  align-items: center;
  padding: 72px 0;
  text-align: center;
  overflow: hidden;
}

.thanks-hero__inner {
  max-width: 720px;
}

.thanks-hero .plas-coord {
  display: inline-block;
  margin-bottom: 18px;
}

.thanks-hero h1 {
  font-size: var(--fs-hero);
  letter-spacing: 0;
}

.thanks-hero p {
  max-width: 600px;
  margin: 18px auto 0;
  color: var(--plas-grey);
  font-weight: 300;
  line-height: 1.75;
}

.thanks-hero__btn {
  width: min(100%, 340px);
  margin-top: 30px;
}

.thanks-hero small {
  display: block;
  margin-top: 14px;
  color: rgba(181, 181, 181, .78);
  font-size: 12px;
}

@media (min-width: 760px) {
  .community-form__grid {
    grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  }

  .community-field:first-child {
    grid-column: 1 / -1;
  }

  .benefit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 980px) {
  .community-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
    gap: 56px;
  }
}

@media (max-width: 640px) {
  section {
    padding: 64px 0;
  }

  .community-hero {
    min-height: auto;
    padding: 56px 0 64px;
  }

  .discord-mock {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto 1fr;
    min-height: 0;
  }

  .discord-mock.plas-float {
    animation: none;
  }

  .discord-mock__channels {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    max-height: 58px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(236, 236, 236, .06);
    padding: 10px 12px;
  }

  .discord-mock__channels strong,
  .discord-mock__channels span {
    flex: 0 0 auto;
  }

  .discord-mock__channels strong {
    max-width: 92px;
    margin: 0;
  }

  .discord-mock__channels span {
    max-width: 150px;
    padding: 8px 10px;
  }

  .discord-mock__chat {
    grid-column: 2;
    grid-row: 2;
    padding: 16px;
  }

  .discord-mock__top {
    flex-direction: column;
  }
}
