@import url("components.css");

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Inter_400Regular";
  src: url("../fonts/Inter_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter_500Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Inter_500Medium";
  src: url("../fonts/Inter_500Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Inter_600SemiBold";
  src: url("../fonts/Inter_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Inter_700Bold";
  src: url("../fonts/Inter_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter_800ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Inter_800ExtraBold";
  src: url("../fonts/Inter_800ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter_900Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Inter_900Black";
  src: url("../fonts/Inter_900Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

html {
  min-height: 100%;
  background: #f7f7fb;
}

body.nglink-public-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f7f7fb;
  color: #161824;
  font-family: var(--font-sans);
  overscroll-behavior: none;
  position: relative;
}

.nglink-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../img/bglight.png") center top / cover no-repeat;
  opacity: 0.2;
}

button,
a,
textarea,
input,
label {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
textarea,
input {
  font: inherit;
}

button,
a,
label {
  touch-action: manipulation;
}

button:focus,
a:focus,
textarea:focus,
input:focus {
  outline: none;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(85, 101, 245, 0.18);
  outline-offset: 3px;
}

.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;
}

.nglink-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 27px 21px 18px;
  display: flex;
  flex-direction: column;
}

.nglink-header {
  text-align: center;
}

.nglink-brand-text {
  margin: 0;
  color: #5565f5;
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.nglink-school-title {
  min-height: 33px;
  margin: 2px 0 0;
  color: #171923;
  font-family: var(--font-sans);
  font-size: 26px;
  line-height: 31px;
  font-weight: 700;
  letter-spacing: -0.35px;
  overflow-wrap: anywhere;
}

.nglink-app-cta {
  position: relative;
  width: 100%;
  min-height: 63px;
  margin: 40px 0 18px;
  border: 1.5px solid #d8dce8;
  border-radius: 18px;
  padding: 6px 16px 6px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #141824;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: transform 120ms cubic-bezier(0.32, 0, 0.67, 0);
}

.nglink-app-cta:active {
  transform: translateY(2px) scale(0.975);
}

.nglink-app-cta-megaphone {
  position: absolute;
  top: -8px;
  left: -7px;
  width: 29px;
  height: 29px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(40%) sepia(95%) saturate(3064%) hue-rotate(226deg) brightness(98%) contrast(95%);
}

.nglink-app-cta > span:first-of-type {
  flex: 1;
  text-align: left;
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: -0.15px;
}

.nglink-app-cta-arrow {
  width: 46px;
  height: 32px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #071324;
  flex: 0 0 auto;
}

.nglink-app-cta-arrow img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.nglink-card {
  width: 100%;
}

.nglink-form {
  width: 100%;
}

.nglink-textarea-wrap {
  position: relative;
  margin-top: 17px;
  transform-origin: center;
  will-change: transform;
}

.nglink-textarea-wrap.is-focused {
  transform: scale(1);
}

.nglink-card-logo {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 72px;
  height: auto;
  transform: translateX(-50%);
  filter: brightness(0) saturate(100%) invert(7%) sepia(62%) saturate(1307%) hue-rotate(186deg) brightness(94%) contrast(101%);
  pointer-events: none;
}

.nglink-textarea {
  display: block;
  width: 100%;
  min-height: 250px;
  max-height: 44vh;
  border: 2px solid #d3b7ff;
  border-radius: 18px;
  padding: 105px 36px 52px;
  resize: none;
  background: linear-gradient(180deg, #b8c8ff 0%, #f3f5ff 100%);
  color: #141824;
  text-align: center;
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.2px;
  box-shadow: none;
  transition: border-color 180ms ease;
}

.nglink-textarea.has-multiline-text {
  padding-top: 78px;
}

.nglink-textarea::placeholder {
  color: rgba(78, 86, 108, 0.56);
  opacity: 1;
}

.nglink-textarea:focus {
  border-color: #bfa2ff;
}

.nglink-count {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: rgba(78, 86, 108, 0.52);
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
}

.nglink-mention-btn {
  position: absolute;
  right: 18px;
  bottom: 19px;
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #b8bbc4;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), color 160ms ease;
}

.nglink-field-error {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  max-width: calc(100% - 70px);
  border-radius: 999px;
  padding: 5px 9px;
  background: #f63363;
  color: #fff;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  box-shadow: 0 8px 18px rgba(246, 51, 99, 0.22);
}

.nglink-mention-btn:hover {
  color: #9da1ad;
  transform: translateY(-1px) scale(1.04);
}

.nglink-mention-btn:active {
  transform: translateY(1px) scale(0.94);
}

.nglink-mention-btn span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font-family: var(--font-sans);
  font-size: 28px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.nglink-mention-btn i {
  position: absolute;
  top: 4px;
  right: 1px;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4b55;
}

.nglink-mentions-panel {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 118px;
  z-index: 8;
  width: auto;
  margin: 0;
  border: 1.5px solid #d8dce8;
  border-radius: 16px;
  padding: 12px;
  background: #f0f1f5;
  color: #4a5266;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
}

.nglink-mentions-title {
  margin: 0;
  color: #2f3648;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
}

.nglink-mentions-copy {
  margin: 3px 0 10px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.nglink-mention-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 8px;
  background: #fff;
}

.nglink-mention-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d7dbe5;
}

.nglink-mention-row strong,
.nglink-mention-row small {
  display: block;
}

.nglink-mention-row strong {
  color: #343b4e;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}

.nglink-mention-row small {
  color: #858b98;
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
}

.nglink-store-btn {
  width: 188px;
  min-height: 50px;
  margin: 26px auto 0;
  border: 1px solid #d8dce8;
  border-radius: 24px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  white-space: nowrap;
  background: #fff;
  color: #171923;
  cursor: pointer;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.nglink-store-btn img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(7%) sepia(62%) saturate(1307%) hue-rotate(186deg) brightness(94%) contrast(101%);
  transform: translateY(1px);
}

.nglink-store-btn:active {
  transform: translateY(2px) scale(0.975);
}

.nglink-students {
  min-height: 18px;
  margin: 13px auto 0;
  color: #24293a;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.nglink-students strong {
  color: #5565f5;
}

.nglink-comments-row {
  margin-top: 0;
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nglink-comments-label {
  color: #435070;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.nglink-switch {
  position: relative;
  width: 66px;
  height: 34px;
  flex: 0 0 auto;
  cursor: pointer;
}

.nglink-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nglink-switch span {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: #d8dce8;
  transition: background-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nglink-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 360ms cubic-bezier(0.2, 1.35, 0.32, 1);
}

.nglink-switch input:checked + span {
  background: #34c85a;
}

.nglink-switch input:checked + span::after {
  transform: translateX(32px);
}

.nglink-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 22px;
  padding: 0 16px;
  background: #5565f5;
  color: #e4e8ff;
  cursor: pointer;
  font-size: 15px;
  line-height: 19px;
  font-weight: 500;
  margin-bottom: 10px;
}

.nglink-submit:active {
  transform: translateY(2px) scale(0.975);
  background: #4656ea;
}

.nglink-submit[disabled] {
  opacity: 0.68;
  cursor: not-allowed;
  transform: none;
}

.nglink-button-loading {
  pointer-events: none;
}

.nglink-united-spinner {
  width: 54px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.nglink-united-spinner img {
  width: 54px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  animation: united-spinner-pulse 780ms ease-in-out infinite alternate;
}

.nglink-store-btn .nglink-united-spinner img {
  filter: brightness(0) saturate(100%) invert(7%) sepia(62%) saturate(1307%) hue-rotate(186deg) brightness(94%) contrast(101%);
}

@keyframes united-spinner-pulse {
  from {
    opacity: 0.34;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1.03);
  }
}

.nglink-button-loading {
  pointer-events: none;
}

.nglink-united-spinner {
  width: 49px;
  height: 20px;
  display: inline-block;
}

.nglink-united-spinner svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nglink-united-spinner .ghost {
  fill: rgba(255, 255, 255, 0.34);
}

.nglink-store-btn .nglink-united-spinner .ghost {
  fill: #d8dce8;
}

.nglink-united-spinner .accent path {
  fill: currentColor;
  opacity: 0;
  animation: united-spinner-wave 1.55s infinite;
}

.nglink-united-spinner .accent path:nth-child(1) { animation-delay: 0.48s; }
.nglink-united-spinner .accent path:nth-child(2) { animation-delay: 0.32s; }
.nglink-united-spinner .accent path:nth-child(3) { animation-delay: 0.16s; }
.nglink-united-spinner .accent path:nth-child(4) { animation-delay: 0s; }
.nglink-united-spinner .accent path:nth-child(5) { animation-delay: 0.64s; }

@keyframes united-spinner-wave {
  0%, 20% { opacity: 0; }
  42%, 78% { opacity: 1; }
  100% { opacity: 0; }
}

.nglink-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #5d6578;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.nglink-status.is-error {
  color: #a63a4a;
}

.nglink-status.is-success {
  color: #2d8c63;
}

.nglink-empty {
  margin: auto 0;
  color: #5d6578;
  text-align: center;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
}

.nglink-footer {
  margin-top: 0;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #171923;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.nglink-footer a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

@media (max-width: 360px) {
  .nglink-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nglink-app-cta {
    margin-top: 32px;
    margin-bottom: 28px;
  }

  .nglink-textarea {
    min-height: 226px;
    padding-top: 92px;
    font-size: 18px;
  }

  .nglink-comments-row {
    margin-top: 54px;
  }
}

@media (min-height: 820px) and (min-width: 390px) {
  .nglink-comments-row {
    margin-top: 92px;
  }
}
